-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: panic when reverting schema change jobs on databases and schemas #59415
Comments
The problem seems to be that a job for dropping a database was rolled back, but we're not actually set up to handle this in |
The problem is actually not with dropping databases, but with every schema change on a non-table descriptor other than dropping a database. The problem is that we check whether So cockroach/pkg/sql/schema_changer.go Lines 2203 to 2205 in eeddc0d
But that doesn't really have adverse effects besides a confusing error. |
The (sort of) good news is that it seems that this panic no longer happens on master due to our cockroach/pkg/sql/catalog/descs/collection.go Line 979 in a001cb7
But now we get an inscrutable |
That's right good news that validates the investment in the code. |
This issue was autofiled by Sentry. It represents a crash or reported error on a live cluster with telemetry enabled.
Sentry link: https://sentry.io/organizations/cockroach-labs/issues/2178735398/?referrer=webhooks_plugin
Panic message:
Stacktrace (expand for inline code snippets):
/usr/local/go/src/runtime/panic.go#L678-L680 in runtime.gopanic
/usr/local/go/src/runtime/iface.go#L254-L256 in runtime.panicdottypeE
/usr/local/go/src/runtime/iface.go#L264-L266 in runtime.panicdottypeI
cockroach/pkg/sql/catalog/descs/collection.go
Lines 978 to 980 in eda2309
cockroach/pkg/sql/schema_changer.go
Lines 1453 to 1455 in eda2309
cockroach/pkg/sql/schema_changer.go
Lines 1936 to 1938 in eda2309
cockroach/pkg/sql/catalog/descs/txn.go
Lines 59 to 61 in eda2309
cockroach/pkg/kv/db.go
Lines 706 to 708 in eda2309
cockroach/pkg/kv/txn.go
Lines 810 to 812 in eda2309
cockroach/pkg/kv/db.go
Lines 705 to 707 in eda2309
cockroach/pkg/sql/catalog/descs/txn.go
Lines 54 to 56 in eda2309
cockroach/pkg/sql/schema_changer.go
Lines 1933 to 1935 in eda2309
cockroach/pkg/sql/schema_changer.go
Lines 1923 to 1925 in eda2309
cockroach/pkg/sql/schema_changer.go
Lines 1451 to 1453 in eda2309
cockroach/pkg/sql/schema_changer.go
Lines 805 to 807 in eda2309
cockroach/pkg/sql/schema_changer.go
Lines 716 to 718 in eda2309
cockroach/pkg/sql/schema_changer.go
Lines 2235 to 2237 in eda2309
cockroach/pkg/jobs/registry.go
Lines 1190 to 1192 in eda2309
cockroach/pkg/jobs/registry.go
Lines 1191 to 1193 in eda2309
cockroach/pkg/jobs/registry.go
Lines 1176 to 1178 in eda2309
cockroach/pkg/jobs/registry.go
Lines 1124 to 1126 in eda2309
cockroach/pkg/jobs/adopt.go
Lines 256 to 258 in eda2309
cockroach/pkg/jobs/adopt.go
Lines 193 to 195 in eda2309
cockroach/pkg/util/stop/stopper.go
Lines 346 to 348 in eda2309
/usr/local/go/src/runtime/asm_amd64.s#L1356-L1358 in runtime.goexit
v20.2.4
The text was updated successfully, but these errors were encountered: