-
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: (0) fetcher.go:1336: Non-nullable column "%s:%s" with no value! Index scanned was %q with the index key columns (%s) and the values (%s) | string; string; string; string; string (see stack traces in additional data) #38577
Comments
This is similar to #38292 (which originates from Unless I'm missing something, it's not even clear that this has anything to do with the column backfiller, since the column backfiller was just reading the existing rows in the primary key span when it found a null in an existing non-nullable column. I don't think we have enough information to take any action. |
I can confirm it (v19.1.4): pq: internal error: Non-nullable column "name" with no value! Index scanned was "primary" with the index key columns (id) and the values () |
@Dendon, do you have any schema changes running? Is this a reproducible problem? Can you show us the query that was running that caused this issue, and the schema of the tables it was interacting with? Thank you! |
I recently added 3 nodes which are still getting populated, but no schema changes running.
This represents the same structure, though is of course stripped down and renamed.
|
This seems to confirm that something else is causing nulls to be written to the primary key index, and that both the column backfiller and the select statements (as well as #38292) are just causing the problem to surface. I don't have any ideas about this bug itself, but maybe we should start tracking these occurrences in an issue for SQL execution (since this probably isn't a Bulk IO bug). |
@Dendon so you're saying this cluster has been around for a long time but only just started seeing the problems after you started adding nodes? |
Correct. |
Is the problem localized to a particular primary key? As a workaround, you should be able to alter the table to remove the not null constraint, delete and re-add the key. Would you be able to send us a debug.zip of your cluster? |
@Dendon is this a problem with any query on the primary key or just one specific row? |
@jordanlewis It seems to spread based on what tables got balanced yet and which haven't been yet. I created a debug.zip to see what it contains and noticed already quite a few things going wrong with the balancing for some reason, so it might be wise to delay it until the balancing is over and see what problems will stick around. @nvanbenschoten every query. |
Not sure if it's related, but I just tried to add an index and it failed with the message:
When checking the affected table, it seems that there is one row which is completely NULLed expect the id column. I also went and dropped the NOT NULL restraint, so running queries on primary works again. EDIT: I checked a backup file, and the id of the NULLed row was indeed used before.
|
The last thing is caused by the index being inconsistent - same problem as earlier. You could drop the index and rebuild it, or delete and readd the key. This being said it's certainly concerning. Would you be comfortable sharing data dumps with us? If not, a debug.zip would be useful. |
I realize this was left open for the SQL team to address, but this is almost certainly fixed by #42833. So I'm going to go ahead and close it (it'll still be searchable should anyone run into the same). |
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/1091971862/?referrer=webhooks_plugin
Panic message:
Stacktrace (expand for inline code snippets):
cockroach/pkg/sql/row/fetcher.go
Lines 1335 to 1337 in cbd571c
cockroach/pkg/sql/row/fetcher.go
Lines 1077 to 1079 in cbd571c
cockroach/pkg/sql/row/fetcher.go
Lines 1096 to 1098 in cbd571c
cockroach/pkg/sql/backfill/backfill.go
Lines 218 to 220 in cbd571c
cockroach/pkg/sql/distsqlrun/columnbackfiller.go
Lines 101 to 103 in cbd571c
cockroach/pkg/internal/client/db.go
Lines 597 to 599 in cbd571c
cockroach/pkg/internal/client/txn.go
Lines 687 to 689 in cbd571c
cockroach/pkg/internal/client/db.go
Lines 596 to 598 in cbd571c
cockroach/pkg/sql/distsqlrun/columnbackfiller.go
Lines 89 to 91 in cbd571c
cockroach/pkg/sql/distsqlrun/backfiller.go
Lines 141 to 143 in cbd571c
cockroach/pkg/sql/distsqlrun/backfiller.go
Lines 85 to 87 in cbd571c
cockroach/pkg/sql/distsqlrun/flow.go
Lines 565 to 567 in cbd571c
v19.1.2
go1.11.6
The text was updated successfully, but these errors were encountered: