-
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: v22.2.0: transaction committed but schema change aborted with error: node scan with MaxCost added to the memo #95728
Comments
@cockroachdb/sql-queries folks, do y'all know about cockroach/pkg/sql/catalog/lease/count.go Lines 30 to 46 in 2f81142
I'm moving this off the schema board for the moment. The fact that it got wrapped in a schema error is sort of irrelevant I think. |
The only way I can see that a Scan cost could be infinity (or close enough to trigger the panic) is if the estimated row-count was very large too... I don't see any reason why we should ever estimate that many rows, but AFAIK we don't technically have any guardrails that would prevent it from happening. |
I've seen this before due to dividing by 0 .... usually it's a bug somewhere in the statisticsBuilder or coster. |
Maybe we can improve the error message here to make it easier to understand what's going on. We could possibly include a serialized representation of the partially constructed memo. |
We have marked this issue as stale because it has been inactive for |
I'm closing this as it's from an unsupported version and we don't have a reproduction. If it happens again on a newer version we can investigate. |
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/3894036667/?referrer=webhooks_plugin
Panic message:
Stacktrace (expand for inline code snippets):
cockroach/pkg/sql/conn_executor.go
Lines 3011 to 3013 in 77667a1
cockroach/pkg/sql/conn_executor.go
Lines 3032 to 3034 in 77667a1
cockroach/pkg/sql/conn_executor.go
Lines 2102 to 2104 in 77667a1
cockroach/pkg/sql/conn_executor.go
Lines 1845 to 1847 in 77667a1
cockroach/pkg/sql/conn_executor.go
Lines 827 to 829 in 77667a1
cockroach/pkg/sql/pgwire/conn.go
Lines 727 to 729 in 77667a1
GOROOT/src/runtime/asm_amd64.s#L1593-L1595 in runtime.goexit
v22.2.0
Jira issue: CRDB-23693
The text was updated successfully, but these errors were encountered: