Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: schemadiff nil dereference error in Online DDL analysis #17477

Closed
shlomi-noach opened this issue Jan 8, 2025 · 0 comments · Fixed by #17475
Closed

Bug Report: schemadiff nil dereference error in Online DDL analysis #17477

shlomi-noach opened this issue Jan 8, 2025 · 0 comments · Fixed by #17475
Assignees
Labels
Component: schema management schemadiff and schema changes Type: Bug

Comments

@shlomi-noach
Copy link
Contributor

Overview of the Issue

schemadiff (hence vttablet) will crash with panic: runtime error: invalid memory address or nil pointer dereference when doing Online DDL analysis (OnlineDDLMigrationTablesAnalysis(), PrioritizedUniqueKeys()) for vrpelication migrations, and where there's an index using an expression (as in KEY idx1 ((id + 1))). Such indexes are not eligible as iteration keys in the first place, and should be skipped.

Reproduction Steps

Migrate a table such as create table t (id int, primary key (id), key idx1 ((id + 1))).

Binary Version

current, 21, 20, 19

Operating System and Environment details

-

Log Fragments

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: schema management schemadiff and schema changes Type: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant