-
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
sentry: conn_executor.go:647: panic while executing 1 statements: CREATE TABLE _ (_ STRING(20), _ INT8, _ INT8, _ STRING(20)) PARTITION BY LIST (_, _) (PARTITION _ VALUES IN (_), PARTITION _ VALUES IN (_), PARTITION _ VALUES IN (_), PARTITION _ VALUES IN (DEFAULT)): caused by <redacted> #37682
Comments
Repro:
|
Justin's repro seems to panic on cockroach/pkg/ccl/partitionccl/partition.go Lines 182 to 184 in cb13780
|
Yeah, looks like the repro conditions are 1) trying to partition with more columns than there are in the primary key (or other index being partitioned and 2) one of the columns names doesn't match. I think reversing the "sufficient columns" check and the "column names match" check should fix it |
Right diagnosis, wrong fix. PR incoming |
If a PARTITION BY LIST both didn't match the column names in the index being partitioned and also tried to partition by more columns than were in the index, we previously panic'd when constructing the error. Closes cockroachdb#37682 Release note (bug fix): Fixed a panic when construting the error message for an invalid partitioning.
Bravo on the simple repro @justinj, that was extremely helpful |
37673: roachtest: skip kv/gracefuldraining r=nvanbenschoten a=tbg I should've done this a long time ago, it's been flaky for five months and failed approximately 120 times (i.e. most of the time). See #33501 (comment) Release note: None 37689: partitionccl: error instead of panic for an invalid partitioning r=justinj,jordanlewis a=danhhz If a PARTITION BY LIST both didn't match the column names in the index being partitioned and also tried to partition by more columns than were in the index, we previously panic'd when constructing the error. Closes #37682 Release note (bug fix): Fixed a panic when construting the error message for an invalid partitioning. Co-authored-by: Tobias Schottdorf <[email protected]> Co-authored-by: Daniel Harrison <[email protected]>
If a PARTITION BY LIST both didn't match the column names in the index being partitioned and also tried to partition by more columns than were in the index, we previously panic'd when constructing the error. Closes cockroachdb#37682 Release note (bug fix): Fixed a panic when construting the error message for an invalid partitioning.
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/1036314618/?referrer=webhooks_plugin
Panic message:
Stacktrace (expand for inline code snippets):
cockroach/pkg/sql/conn_executor.go
Lines 388 to 390 in d554884
/usr/local/go/src/runtime/asm_amd64.s#L572-L574 in runtime.call32
/usr/local/go/src/runtime/panic.go#L501-L503 in runtime.gopanic
/usr/local/go/src/runtime/panic.go#L34-L36 in runtime.panicslice
cockroach/pkg/ccl/partitionccl/partition.go
Lines 154 to 156 in d554884
cockroach/pkg/ccl/partitionccl/partition.go
Lines 226 to 228 in d554884
cockroach/pkg/sql/create_table.go
Lines 814 to 816 in d554884
cockroach/pkg/sql/create_table.go
Lines 1125 to 1127 in d554884
cockroach/pkg/sql/create_table.go
Lines 1236 to 1238 in d554884
cockroach/pkg/sql/resolver.go
Lines 139 to 141 in d554884
cockroach/pkg/sql/create_table.go
Lines 1235 to 1237 in d554884
cockroach/pkg/sql/create_table.go
Lines 141 to 143 in d554884
cockroach/pkg/sql/plan.go
Lines 639 to 641 in d554884
cockroach/pkg/sql/walk.go
Lines 133 to 135 in d554884
cockroach/pkg/sql/walk.go
Lines 542 to 544 in d554884
cockroach/pkg/sql/walk.go
Lines 100 to 102 in d554884
cockroach/pkg/sql/walk.go
Lines 64 to 66 in d554884
cockroach/pkg/sql/plan.go
Lines 644 to 646 in d554884
cockroach/pkg/sql/plan_node_to_row_source.go
Lines 122 to 124 in d554884
cockroach/pkg/sql/distsqlrun/processors.go
Lines 729 to 731 in d554884
cockroach/pkg/sql/distsqlrun/flow.go
Lines 580 to 582 in d554884
cockroach/pkg/sql/distsql_running.go
Lines 252 to 254 in d554884
cockroach/pkg/sql/distsql_running.go
Lines 755 to 757 in d554884
cockroach/pkg/sql/conn_executor_exec.go
Lines 970 to 972 in d554884
cockroach/pkg/sql/conn_executor_exec.go
Lines 817 to 819 in d554884
cockroach/pkg/sql/conn_executor_exec.go
Lines 395 to 397 in d554884
cockroach/pkg/sql/conn_executor_exec.go
Lines 95 to 97 in d554884
cockroach/pkg/sql/conn_executor.go
Lines 1122 to 1124 in d554884
cockroach/pkg/sql/conn_executor.go
Lines 390 to 392 in d554884
cockroach/pkg/sql/pgwire/conn.go
Lines 519 to 521 in d554884
v2.1.7
go1.10.7
The text was updated successfully, but these errors were encountered: