-
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: expected DString, found tree.dNull [in (*adminServer).DataDistribution] #140044
Comments
CC'ing via the CODEOWNERS-based sentry heuristic:
🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
This occured when attempting to read cockroach/pkg/sql/crdb_internal.go Lines 4958 to 4959 in ef17976
Lines 3046 to 3057 in bf897af
|
Seeing as how this started appearing in 25.1 I'll look into if there were any recent zone config changes and if this is an expected state or not. |
I think it could be related to changes in #137584 where we changed the |
In the data distribution handler we were attempting to read a `raw_sql_config` on `crd_internal.zones` using `MustBeDString` which panics if the value is null. This column is nullable so we should not make this assertion. Fixes: cockroachdb#140044 Release note (bug fix): Data distribution page in advanced debug will no longer crash if there are null values for `raw_sql_config` in `crdb_internal.zons`.
In the data distribution handler we were attempting to read a `raw_sql_config` on `crd_internal.zones` using `MustBeDString` which panics if the value is null. This column is nullable so we should not make this assertion. Fixes: cockroachdb#140044 Release note (bug fix): Data distribution page in advanced debug will no longer crash if there are null values for `raw_sql_config` in `crdb_internal.zons`.
In the data distribution handler we were attempting to read a `raw_sql_config` on `crd_internal.zones` using `MustBeDString` which panics if the value is null. This column is nullable. This commit addresses this by adding a filter to the query so that we only get results with non-null values for the column. Fixes: cockroachdb#140044 Release note (bug fix): Data distribution page in advanced debug will no longer crash if there are null values for `raw_sql_config` in `crdb_internal.zons`.
In the data distribution handler we were attempting to read a `raw_sql_config` on `crdb_internal.zones` using `MustBeDString` which panics if the value is null. This column is nullable. We now allow null values to be read and make the response value an empty string in that case. Fixes: cockroachdb#140044 Release note (bug fix): Data distribution page in advanced debug will no longer crash if there are null values for `raw_sql_config` in `crdb_internal.zones`.
In the data distribution handler we were attempting to read a `raw_sql_config` on `crdb_internal.zones` using `MustBeDString` which panics if the value is null. This column is nullable. We now allow null values to be read and make the response value an empty string in that case. Fixes: cockroachdb#140044 Release note (bug fix): Data distribution page in advanced debug will no longer crash if there are null values for `raw_sql_config` in `crdb_internal.zones`.
In the data distribution handler we were attempting to read a `raw_sql_config` on `crdb_internal.zones` using `MustBeDString` which panics if the value is null. This column is nullable. We now allow null values to be read and make the response value an empty string in that case. Fixes: cockroachdb#140044 Release note (bug fix): Data distribution page in advanced debug will no longer crash if there are null values for `raw_sql_config` in `crdb_internal.zones`.
This issue was auto filed by Sentry. It represents a crash or reported error on a live cluster with telemetry enabled.
Sentry Link: https://cockroach-labs.sentry.io/issues/6256445744/?referrer=webhooks_plugin
Panic Message:
Stacktrace (expand for inline code snippets):
src/runtime/asm_amd64.s#L1694-L1696
external/org_golang_google_grpc/server.go#L969-L971
external/org_golang_google_grpc/server.go#L1734-L1736
external/org_golang_google_grpc/server.go#L1357-L1359
bazel-out/k8-opt/bin/pkg/server/serverpb/serverpb_go_proto_/https://github.com/cockroachdb/cockroach/blob/b13cf51d928597efcb5a57eb7a9dad19c67b109e/pkg/server/serverpb/admin.pb.go#L6282-L6284
external/org_golang_google_grpc/server.go#L1167-L1169
pkg/rpc/context.go#L129-L131
pkg/util/stop/stopper.go#L348-L350
pkg/rpc/context.go#L131-L133
external/org_golang_google_grpc/server.go#L1176-L1178
pkg/rpc/auth.go#L89-L91
external/org_golang_google_grpc/server.go#L1176-L1178
pkg/rpc/context.go#L164-L166
external/org_golang_google_grpc/server.go#L1176-L1178
pkg/util/tracing/grpcinterceptor/grpc_interceptor.go#L103-L105
bazel-out/k8-opt/bin/pkg/server/serverpb/serverpb_go_proto_/https://github.com/cockroachdb/cockroach/blob/b13cf51d928597efcb5a57eb7a9dad19c67b109e/pkg/server/serverpb/admin.pb.go#L6280-L6282
pkg/server/admin.go#L2927-L2929
pkg/server/admin.go#L3056-L3058
pkg/sql/sem/tree/datum.go#L1215-L1217
GOROOT/src/runtime/panic.go#L769-L771
src/runtime/asm_amd64.s#L1694-L1696
external/org_golang_google_grpc/server.go#L969-L971
external/org_golang_google_grpc/server.go#L1734-L1736
external/org_golang_google_grpc/server.go#L1357-L1359
bazel-out/k8-opt/bin/pkg/server/serverpb/serverpb_go_proto_/https://github.com/cockroachdb/cockroach/blob/b13cf51d928597efcb5a57eb7a9dad19c67b109e/pkg/server/serverpb/admin.pb.go#L6282-L6284
external/org_golang_google_grpc/server.go#L1167-L1169
pkg/rpc/context.go#L129-L131
pkg/util/stop/stopper.go#L348-L350
pkg/rpc/context.go#L131-L133
external/org_golang_google_grpc/server.go#L1176-L1178
pkg/rpc/auth.go#L89-L91
external/org_golang_google_grpc/server.go#L1176-L1178
pkg/rpc/context.go#L164-L166
external/org_golang_google_grpc/server.go#L1176-L1178
pkg/util/tracing/grpcinterceptor/grpc_interceptor.go#L103-L105
bazel-out/k8-opt/bin/pkg/server/serverpb/serverpb_go_proto_/https://github.com/cockroachdb/cockroach/blob/b13cf51d928597efcb5a57eb7a9dad19c67b109e/pkg/server/serverpb/admin.pb.go#L6280-L6282
pkg/server/admin.go#L2927-L2929
pkg/server/admin.go#L3056-L3058
pkg/sql/sem/tree/datum.go#L1215-L1217
Tags
Jira issue: CRDB-46973
The text was updated successfully, but these errors were encountered: