-
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
protectedts: v22.1.0-beta: interface conversion: tree.Datum is tree.dNull, not *tree.DBytes #79684
Labels
branch-release-22.1
Used to mark GA and release blockers, technical advisories, and bugs for 22.1
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
GA-blocker
O-sentry
Originated from an in-the-wild panic report.
T-disaster-recovery
T-kv
KV Team
Comments
cockroach-teamcity
added
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-sentry
Originated from an in-the-wild panic report.
labels
Apr 8, 2022
yuzefovich
changed the title
sentry: panic.go:1038: interface conversion: tree.Datum is tree.dNull, not *tree.DBytes
(1) attached stack trace
-- stack trace:
| runtime.gopanic
| GOROOT/src/runtime/panic.go:1038
| runtime.panicdo...
protectedts: v22.1.0-beta: interface conversion: tree.Datum is tree.dNull, not *tree.DBytes
Apr 9, 2022
Marking this as a GA-blocker, I think it is important to fix and backport. |
cc @cockroachdb/bulk-io |
adityamaru
added
GA-blocker
branch-release-22.1
Used to mark GA and release blockers, technical advisories, and bugs for 22.1
labels
Apr 11, 2022
The problem is well understood, I should have a fix + backport out soon. |
adityamaru
added a commit
to adityamaru/cockroach
that referenced
this issue
Apr 11, 2022
Previously, we incorrectly assumed that all records in the `system.protectedts_records` table would have a non NULL target column. While this is enforced for all protected timestamp records written in a 22.1+ cluster, this is not true for records that might have been prior to the 22.1 cluster version being finalized. This change makes the method responsible for reading protectedts records more defensive when encountering a NULL target column. Fixes: cockroachdb#79684 Release note: None
adityamaru
added a commit
to adityamaru/cockroach
that referenced
this issue
Apr 11, 2022
Previously, we incorrectly assumed that all records in the `system.protectedts_records` table would have a non NULL target column. While this is enforced for all protected timestamp records written in a 22.1+ cluster, this is not true for records that might have been prior to the 22.1 cluster version being finalized. This change makes the method responsible for reading protectedts records more defensive when encountering a NULL target column. Fixes: cockroachdb#79684 Release note: None
blathers-crl bot
pushed a commit
that referenced
this issue
Apr 11, 2022
Previously, we incorrectly assumed that all records in the `system.protectedts_records` table would have a non NULL target column. While this is enforced for all protected timestamp records written in a 22.1+ cluster, this is not true for records that might have been prior to the 22.1 cluster version being finalized. This change makes the method responsible for reading protectedts records more defensive when encountering a NULL target column. Fixes: #79684 Release note: None
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
branch-release-22.1
Used to mark GA and release blockers, technical advisories, and bugs for 22.1
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
GA-blocker
O-sentry
Originated from an in-the-wild panic report.
T-disaster-recovery
T-kv
KV Team
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/3173966052/?referrer=webhooks_plugin
Panic message:
Stacktrace (expand for inline code snippets):
GOROOT/src/runtime/panic.go#L1037-L1039 in runtime.gopanic
GOROOT/src/runtime/iface.go#L260-L262 in runtime.panicdottypeE
GOROOT/src/runtime/iface.go#L270-L272 in runtime.panicdottypeI
https://github.com/cockroachdb/cockroach/blob/a88367d7bd168a3614b7946cd7b77bb9c6374a30/pkg/kv/kvserver/protectedts/ptstorage/pkg/kv/kvserver/protectedts/ptstorage/storage.go#L417-L419 in pkg/kv/kvserver/protectedts/ptstorage.rowToRecord
https://github.com/cockroachdb/cockroach/blob/a88367d7bd168a3614b7946cd7b77bb9c6374a30/pkg/kv/kvserver/protectedts/ptstorage/pkg/kv/kvserver/protectedts/ptstorage/storage.go#L371-L373 in pkg/kv/kvserver/protectedts/ptstorage.(*storage).getRecords
https://github.com/cockroachdb/cockroach/blob/a88367d7bd168a3614b7946cd7b77bb9c6374a30/pkg/kv/kvserver/protectedts/ptstorage/pkg/kv/kvserver/protectedts/ptstorage/storage.go#L323-L325 in pkg/kv/kvserver/protectedts/ptstorage.(*storage).GetState
cockroach/pkg/kv/kvserver/protectedts/ptcache/cache.go
Lines 244 to 246 in a88367d
cockroach/pkg/kv/db.go
Lines 931 to 933 in a88367d
cockroach/pkg/kv/txn.go
Lines 984 to 986 in a88367d
cockroach/pkg/kv/db.go
Lines 930 to 932 in a88367d
cockroach/pkg/kv/db.go
Lines 893 to 895 in a88367d
cockroach/pkg/kv/kvserver/protectedts/ptcache/cache.go
Lines 228 to 230 in a88367d
cockroach/pkg/util/stop/stopper.go
Lines 343 to 345 in a88367d
cockroach/pkg/kv/kvserver/protectedts/ptcache/cache.go
Lines 207 to 209 in a88367d
cockroach/pkg/util/syncutil/singleflight/singleflight.go
Lines 127 to 129 in a88367d
src/runtime/asm_amd64.s#L1580-L1582 in runtime.goexit
v22.1.0-beta.1
Jira issue: CRDB-14978
The text was updated successfully, but these errors were encountered: