Skip to content
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: database_desc.go:301: role × was concurrently dropped: database × (1): attempting to set system database schema version to version lower than the minimum supported version (23.2-upgrading-to... #138675

Open
cockroach-sentry opened this issue Jan 8, 2025 · 1 comment
Labels
branch-release-24.3 Used to mark GA and release blockers, technical advisories, and bugs for 24.3 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. T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) X-blathers-triaged blathers was able to find an owner

Comments

@cockroach-sentry
Copy link
Collaborator

cockroach-sentry commented Jan 8, 2025

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/6205910204/?referrer=webhooks_plugin

Panic Message:

database_desc.go:301: role × was concurrently dropped: database × (1): attempting to set system database schema version to version lower than the minimum supported version (23.2-upgrading-to-24.1-step-014): 23.1-upgrading-to-23.2-step-032
(1) candidate pg code: 42704
Wraps: (2) attached stack trace
  -- stack trace:
  | github.com/cockroachdb/cockroach/pkg/sql.(*planner).HasPrivilege
  | 	pkg/sql/authorization.go:199
  | github.com/cockroachdb/cockroach/pkg/sql.(*planner).CheckPrivilegeForUser
  | 	pkg/sql/authorization.go:273
  | github.com/cockroachdb/cockroach/pkg/sql.(*schemaResolver).canResolveDescUnderSchema
  | 	pkg/sql/schema_resolver.go:408
  | github.com/cockroachdb/cockroach/pkg/sql.(*optCatalog).ResolveDataSource
  | 	pkg/sql/opt_catalog.go:261
  | github.com/cockroachdb/cockroach/pkg/sql/opt/optbuilder.(*Builder).resolveDataSource
  | 	pkg/sql/opt/optbuilder/util.go:666
  | github.com/cockroachdb/cockroach/pkg/sql/opt/optbuilder.(*Builder).buildDataSource
  | 	pkg/sql/opt/optbuilder/select.go:134
  | github.com/cockroachdb/cockroach/pkg/sql/opt/optbuilder.(*Builder).buildDataSource
  | 	pkg/sql/opt/optbuilder/select.go:89
  | github.com/cockroachdb/cockroach/pkg/sql/opt/optbuilder.(*Builder).buildFromTablesRightDeep
  | 	pkg/sql/opt/optbuilder/select.go:1409
  | github.com/cockroachdb/cockroach/pkg/sql/opt/optbuilder.(*Builder).buildFromTables
  | 	pkg/sql/opt/optbuilder/select.go:1386
  | github.com/cockroachdb/cockroach/pkg/sql/opt/optbuilder.(*Builder).buildFrom
  | 	pkg/sql/opt/optbuilder/select.go:1316
  | github.com/cockroachdb/cockroach/pkg/sql/opt/optbuilder.(*Builder).buildSelectClause
  | 	pkg/sql/opt/optbuilder/select.go:1232
  | github.com/cockroachdb/cockroach/pkg/sql/opt/optbuilder.(*Builder).buildSelectStmtWithoutParens
  | 	pkg/sql/opt/optbuilder/select.go:1164
  | github.com/cockroachdb/cockroach/pkg/sql/opt/optbuilder.(*Builder).buildSelect.func1
  | 	pkg/sql/opt/optbuilder/select.go:1116
  | github.com/cockroachdb/cockroach/pkg/sql/opt/optbuilder.(*Builder).processWiths
  | 	pkg/sql/opt/optbuilder/with.go:111
  | github.com/cockroachdb/cockroach/pkg/sql/opt/optbuilder.(*Builder).buildSelect
  | 	pkg/sql/opt/optbuilder/select.go:1115
  | github.com/cockroachdb/cockroach/pkg/sql/opt/optbuilder.(*Builder).buildStmt
  | 	pkg/sql/opt/optbuilder/builder.go:372
  | github.com/cockroachdb/cockroach/pkg/sql/opt/optbuilder.(*Builder).buildStmtAtRootWithScope
  | 	pkg/sql/opt/optbuilder/builder.go:315
  | github.com/cockroachdb/cockroach/pkg/sql/opt/optbuilder.(*Builder).buildStmtAtRoot
  | 	pkg/sql/opt/optbuilder/builder.go:296
  | github.com/cockroachdb/cockroach/pkg/sql/opt/optbuilder.(*Builder).Build
  | 	pkg/sql/opt/optbuilder/builder.go:275
  | github.com/cockroachdb/cockroach/pkg/sql.(*optPlanningCtx).buildReusableMemo
  | 	pkg/sql/plan_opt.go:479
  | github.com/cockroachdb/cockroach/pkg/sql.(*planner).prepareUsingOptimizer
  | 	pkg/sql/plan_opt.go:173
  | github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).populatePrepared
  | 	pkg/sql/conn_executor_prepare.go:339
  | github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).prepare.func2
  | 	pkg/sql/conn_executor_prepare.go:279
  | github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).prepare
  | 	pkg/sql/conn_executor_prepare.go:284
  | github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).addPreparedStmt
  | 	pkg/sql/conn_executor_prepare.go:117
  | github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execPrepare
  | 	pkg/sql/conn_executor_prepare.go:78
  | github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execCmd
  | 	pkg/sql/conn_executor.go:2472
  | github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).run
  | 	pkg/sql/conn_executor.go:2263
  | github.com/cockroachdb/cockroach/pkg/sql.(*Server).ServeConn
  | 	pkg/sql/conn_executor.go:963
  | github.com/cockroachdb/cockroach/pkg/sql/pgwire.(*conn).processCommands
  | 	pkg/sql/pgwire/conn.go:251
  | github.com/cockroachdb/cockroach/pkg/sql/pgwire.(*Server).serveImpl.func4
  | 	pkg/sql/pgwire/server.go:1196
Wraps: (3) role × was concurrently dropped
Wraps: (4) keys: [sql.schema.validation_errors.read.self.database]
Wraps: (5) keys: [sql.schema.validation_errors.read.self.database]
Wraps: (6) attached stack trace
  -- stack trace:
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/internal/validate.(*validationErrorAccumulator).decorate
  | 	pkg/sql/catalog/internal/validate/validate.go:244
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/internal/validate.(*validationErrorAccumulator).Report
  | 	pkg/sql/catalog/internal/validate/validate.go:177
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/dbdesc.(*immutable).maybeValidateSystemDatabaseSchemaVersion
  | 	pkg/sql/catalog/dbdesc/database_desc.go:301
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/dbdesc.(*immutable).ValidateSelf
  | 	pkg/sql/catalog/dbdesc/database_desc.go:254
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/internal/validate.Validate.func1
  | 	pkg/sql/catalog/internal/validate/validate.go:75
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/internal/validate.(*validationErrorAccumulator).validateDescriptorsAtLevel
  | 	pkg/sql/catalog/internal/validate/validate.go:193
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/internal/validate.Validate
  | 	pkg/sql/catalog/internal/validate/validate.go:71
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/lease.storage.mustGetDescriptorByID
  | 	pkg/sql/catalog/lease/storage.go:420
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/lease.storage.getForExpiration.func1
  | 	pkg/sql/catalog/lease/storage.go:381
  | github.com/cockroachdb/cockroach/pkg/kv.(*Txn).exec
  | 	pkg/kv/txn.go:1057
  | github.com/cockroachdb/cockroach/pkg/kv.runTxn
  | 	pkg/kv/db.go:1098
  | github.com/cockroachdb/cockroach/pkg/kv.(*DB).TxnWithAdmissionControl
  | 	pkg/kv/db.go:1061
  | github.com/cockroachdb/cockroach/pkg/kv.(*DB).Txn
  | 	pkg/kv/db.go:1036
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/lease.storage.getForExpiration
  | 	pkg/sql/catalog/lease/storage.go:375
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/lease.(*Manager).readOlderVersionForTimestamp
  | 	pkg/sql/catalog/lease/lease.go:547
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/lease.(*Manager).Acquire
  | 	pkg/sql/catalog/lease/lease.go:1283
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/lease.(*Manager).AcquireByName
  | 	pkg/sql/catalog/lease/lease.go:1106
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/descs.(*leasedDescriptors).getByName
  | 	pkg/sql/catalog/descs/leased_descriptors.go:190
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/descs.(*Collection).getNonVirtualDescriptorID.func6
  | 	pkg/sql/catalog/descs/descriptor.go:575
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/descs.(*Collection).getNonVirtualDescriptorID
  | 	pkg/sql/catalog/descs/descriptor.go:615
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/descs.getDescriptorByName
  | 	pkg/sql/catalog/descs/descriptor.go:393
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/descs.ByNameGetter.Database
  | 	pkg/sql/catalog/descs/getters.go:244
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/descs.getObjectPrefix
  | 	pkg/sql/catalog/descs/helpers.go:92
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/descs.PrefixAndTable
  | 	pkg/sql/catalog/descs/helpers.go:129
  | github.com/cockroachdb/cockroach/pkg/sql.MemberOfWithAdminOption
  | 	pkg/sql/authorization.go:568
  | github.com/cockroachdb/cockroach/pkg/sql.(*planner).MemberOfWithAdminOption
  | 	pkg/sql/authorization.go:546
  | github.com/cockroachdb/cockroach/pkg/sql.(*planner).CheckRoleExists
  | 	pkg/sql/user.go:492
  | github.com/cockroachdb/cockroach/pkg/sql.(*planner).HasPrivilege
  | 	pkg/sql/authorization.go:198
  | github.com/cockroachdb/cockroach/pkg/sql.(*planner).CheckPrivilegeForUser
  | 	pkg/sql/authorization.go:273
  | github.com/cockroachdb/cockroach/pkg/sql.(*schemaResolver).canResolveDescUnderSchema
  | 	pkg/sql/schema_resolver.go:408
  | github.com/cockroachdb/cockroach/pkg/sql.(*optCatalog).ResolveDataSource
  | 	pkg/sql/opt_catalog.go:261
Wraps: (7) database × (1)
Wraps: (8) assertion failure
Wraps: ...
Stacktrace (expand for inline code snippets):

src/runtime/asm_amd64.s#L1694-L1696
pkg/sql/pgwire/server.go#L1195-L1197
pkg/sql/pgwire/conn.go#L250-L252
pkg/sql/conn_executor.go#L962-L964
pkg/sql/conn_executor.go#L2262-L2264
pkg/sql/conn_executor.go#L2471-L2473
pkg/sql/conn_executor_prepare.go#L77-L79
pkg/sql/conn_executor_prepare.go#L116-L118
pkg/sql/conn_executor_prepare.go#L283-L285
pkg/sql/conn_executor_prepare.go#L278-L280
pkg/sql/conn_executor_prepare.go#L338-L340
pkg/sql/plan_opt.go#L172-L174
pkg/sql/plan_opt.go#L478-L480
pkg/sql/opt/optbuilder/builder.go#L274-L276
pkg/sql/opt/optbuilder/builder.go#L295-L297
pkg/sql/opt/optbuilder/builder.go#L314-L316
pkg/sql/opt/optbuilder/builder.go#L371-L373
pkg/sql/opt/optbuilder/select.go#L1114-L1116
pkg/sql/opt/optbuilder/with.go#L110-L112
pkg/sql/opt/optbuilder/select.go#L1115-L1117
pkg/sql/opt/optbuilder/select.go#L1163-L1165
pkg/sql/opt/optbuilder/select.go#L1231-L1233
pkg/sql/opt/optbuilder/select.go#L1315-L1317
pkg/sql/opt/optbuilder/select.go#L1385-L1387
pkg/sql/opt/optbuilder/select.go#L1408-L1410
pkg/sql/opt/optbuilder/select.go#L88-L90
pkg/sql/opt/optbuilder/select.go#L133-L135
pkg/sql/opt/optbuilder/util.go#L665-L667
pkg/sql/opt_catalog.go#L260-L262
pkg/sql/schema_resolver.go#L407-L409
pkg/sql/authorization.go#L272-L274
pkg/sql/authorization.go#L198-L200
pkg/sql/opt/optbuilder/util.go#L665-L667
pkg/sql/opt_catalog.go#L260-L262
pkg/sql/schema_resolver.go#L407-L409
pkg/sql/authorization.go#L272-L274
pkg/sql/authorization.go#L197-L199
pkg/sql/user.go#L491-L493
pkg/sql/authorization.go#L545-L547
pkg/sql/authorization.go#L567-L569
pkg/sql/catalog/descs/helpers.go#L128-L130
pkg/sql/catalog/descs/helpers.go#L91-L93
pkg/sql/catalog/descs/getters.go#L243-L245
pkg/sql/catalog/descs/descriptor.go#L392-L394
pkg/sql/catalog/descs/descriptor.go#L614-L616
pkg/sql/catalog/descs/descriptor.go#L574-L576
pkg/sql/catalog/descs/leased_descriptors.go#L189-L191
pkg/sql/catalog/lease/lease.go#L1105-L1107
pkg/sql/catalog/lease/lease.go#L1282-L1284
pkg/sql/catalog/lease/lease.go#L546-L548
pkg/sql/catalog/lease/storage.go#L374-L376
pkg/kv/db.go#L1035-L1037
pkg/kv/db.go#L1060-L1062
pkg/kv/db.go#L1097-L1099
pkg/kv/txn.go#L1056-L1058
pkg/sql/catalog/lease/storage.go#L380-L382
pkg/sql/catalog/lease/storage.go#L419-L421
pkg/sql/catalog/internal/validate/validate.go#L70-L72
pkg/sql/catalog/internal/validate/validate.go#L192-L194
pkg/sql/catalog/internal/validate/validate.go#L74-L76
pkg/sql/catalog/dbdesc/database_desc.go#L253-L255
pkg/sql/catalog/dbdesc/database_desc.go#L300-L302
pkg/sql/catalog/internal/validate/validate.go#L176-L178
pkg/sql/catalog/internal/validate/validate.go#L243-L245
pkg/sql/opt/optbuilder/select.go#L88-L90
pkg/sql/opt/optbuilder/select.go#L133-L135
pkg/sql/opt/optbuilder/util.go#L665-L667
pkg/sql/opt_catalog.go#L260-L262
pkg/sql/schema_resolver.go#L407-L409
pkg/sql/authorization.go#L272-L274
pkg/sql/authorization.go#L197-L199
pkg/sql/user.go#L491-L493
pkg/sql/authorization.go#L545-L547
pkg/sql/authorization.go#L567-L569
pkg/sql/catalog/descs/helpers.go#L128-L130
pkg/sql/catalog/descs/helpers.go#L91-L93
pkg/sql/catalog/descs/getters.go#L243-L245
pkg/sql/catalog/descs/descriptor.go#L392-L394
pkg/sql/catalog/descs/descriptor.go#L614-L616
pkg/sql/catalog/descs/descriptor.go#L574-L576
pkg/sql/catalog/descs/leased_descriptors.go#L189-L191
pkg/sql/catalog/lease/lease.go#L1105-L1107
pkg/sql/catalog/lease/lease.go#L1282-L1284
pkg/sql/catalog/lease/lease.go#L546-L548
pkg/sql/catalog/lease/storage.go#L374-L376
pkg/kv/db.go#L1035-L1037
pkg/kv/db.go#L1060-L1062
pkg/kv/db.go#L1097-L1099
pkg/kv/txn.go#L1056-L1058
pkg/sql/catalog/lease/storage.go#L380-L382
pkg/sql/catalog/lease/storage.go#L419-L421
pkg/sql/catalog/internal/validate/validate.go#L70-L72
pkg/sql/catalog/internal/validate/validate.go#L192-L194
pkg/sql/catalog/internal/validate/validate.go#L74-L76
pkg/sql/catalog/dbdesc/database_desc.go#L253-L255
pkg/sql/catalog/dbdesc/database_desc.go#L300-L302

src/runtime/asm_amd64.s in runtime.goexit at line 1695
pkg/sql/pgwire/server.go in pkg/sql/pgwire.(*Server).serveImpl.func4 at line 1196
pkg/sql/pgwire/conn.go in pkg/sql/pgwire.(*conn).processCommands at line 251
pkg/sql/conn_executor.go in pkg/sql.(*Server).ServeConn at line 963
pkg/sql/conn_executor.go in pkg/sql.(*connExecutor).run at line 2263
pkg/sql/conn_executor.go in pkg/sql.(*connExecutor).execCmd at line 2472
pkg/sql/conn_executor_prepare.go in pkg/sql.(*connExecutor).execPrepare at line 78
pkg/sql/conn_executor_prepare.go in pkg/sql.(*connExecutor).addPreparedStmt at line 117
pkg/sql/conn_executor_prepare.go in pkg/sql.(*connExecutor).prepare at line 284
pkg/sql/conn_executor_prepare.go in pkg/sql.(*connExecutor).prepare.func2 at line 279
pkg/sql/conn_executor_prepare.go in pkg/sql.(*connExecutor).populatePrepared at line 339
pkg/sql/plan_opt.go in pkg/sql.(*planner).prepareUsingOptimizer at line 173
pkg/sql/plan_opt.go in pkg/sql.(*optPlanningCtx).buildReusableMemo at line 479
pkg/sql/opt/optbuilder/builder.go in pkg/sql/opt/optbuilder.(*Builder).Build at line 275
pkg/sql/opt/optbuilder/builder.go in pkg/sql/opt/optbuilder.(*Builder).buildStmtAtRoot at line 296
pkg/sql/opt/optbuilder/builder.go in pkg/sql/opt/optbuilder.(*Builder).buildStmtAtRootWithScope at line 315
pkg/sql/opt/optbuilder/builder.go in pkg/sql/opt/optbuilder.(*Builder).buildStmt at line 372
pkg/sql/opt/optbuilder/select.go in pkg/sql/opt/optbuilder.(*Builder).buildSelect at line 1115
pkg/sql/opt/optbuilder/with.go in pkg/sql/opt/optbuilder.(*Builder).processWiths at line 111
pkg/sql/opt/optbuilder/select.go in pkg/sql/opt/optbuilder.(*Builder).buildSelect.func1 at line 1116
pkg/sql/opt/optbuilder/select.go in pkg/sql/opt/optbuilder.(*Builder).buildSelectStmtWithoutParens at line 1164
pkg/sql/opt/optbuilder/select.go in pkg/sql/opt/optbuilder.(*Builder).buildSelectClause at line 1232
pkg/sql/opt/optbuilder/select.go in pkg/sql/opt/optbuilder.(*Builder).buildFrom at line 1316
pkg/sql/opt/optbuilder/select.go in pkg/sql/opt/optbuilder.(*Builder).buildFromTables at line 1386
pkg/sql/opt/optbuilder/select.go in pkg/sql/opt/optbuilder.(*Builder).buildFromTablesRightDeep at line 1409
pkg/sql/opt/optbuilder/select.go in pkg/sql/opt/optbuilder.(*Builder).buildDataSource at line 89
pkg/sql/opt/optbuilder/select.go in pkg/sql/opt/optbuilder.(*Builder).buildDataSource at line 134
pkg/sql/opt/optbuilder/util.go in pkg/sql/opt/optbuilder.(*Builder).resolveDataSource at line 666
pkg/sql/opt_catalog.go in pkg/sql.(*optCatalog).ResolveDataSource at line 261
pkg/sql/schema_resolver.go in pkg/sql.(*schemaResolver).canResolveDescUnderSchema at line 408
pkg/sql/authorization.go in pkg/sql.(*planner).CheckPrivilegeForUser at line 273
pkg/sql/authorization.go in pkg/sql.(*planner).HasPrivilege at line 199
pkg/sql/opt/optbuilder/util.go in pkg/sql/opt/optbuilder.(*Builder).resolveDataSource at line 666
pkg/sql/opt_catalog.go in pkg/sql.(*optCatalog).ResolveDataSource at line 261
pkg/sql/schema_resolver.go in pkg/sql.(*schemaResolver).canResolveDescUnderSchema at line 408
pkg/sql/authorization.go in pkg/sql.(*planner).CheckPrivilegeForUser at line 273
pkg/sql/authorization.go in pkg/sql.(*planner).HasPrivilege at line 198
pkg/sql/user.go in pkg/sql.(*planner).CheckRoleExists at line 492
pkg/sql/authorization.go in pkg/sql.(*planner).MemberOfWithAdminOption at line 546
pkg/sql/authorization.go in pkg/sql.MemberOfWithAdminOption at line 568
pkg/sql/catalog/descs/helpers.go in pkg/sql/catalog/descs.PrefixAndTable at line 129
pkg/sql/catalog/descs/helpers.go in pkg/sql/catalog/descs.getObjectPrefix at line 92
pkg/sql/catalog/descs/getters.go in pkg/sql/catalog/descs.ByNameGetter.Database at line 244
pkg/sql/catalog/descs/descriptor.go in pkg/sql/catalog/descs.getDescriptorByName at line 393
pkg/sql/catalog/descs/descriptor.go in pkg/sql/catalog/descs.(*Collection).getNonVirtualDescriptorID at line 615
pkg/sql/catalog/descs/descriptor.go in pkg/sql/catalog/descs.(*Collection).getNonVirtualDescriptorID.func6 at line 575
pkg/sql/catalog/descs/leased_descriptors.go in pkg/sql/catalog/descs.(*leasedDescriptors).getByName at line 190
pkg/sql/catalog/lease/lease.go in pkg/sql/catalog/lease.(*Manager).AcquireByName at line 1106
pkg/sql/catalog/lease/lease.go in pkg/sql/catalog/lease.(*Manager).Acquire at line 1283
pkg/sql/catalog/lease/lease.go in pkg/sql/catalog/lease.(*Manager).readOlderVersionForTimestamp at line 547
pkg/sql/catalog/lease/storage.go in pkg/sql/catalog/lease.storage.getForExpiration at line 375
pkg/kv/db.go in pkg/kv.(*DB).Txn at line 1036
pkg/kv/db.go in pkg/kv.(*DB).TxnWithAdmissionControl at line 1061
pkg/kv/db.go in pkg/kv.runTxn at line 1098
pkg/kv/txn.go in pkg/kv.(*Txn).exec at line 1057
pkg/sql/catalog/lease/storage.go in pkg/sql/catalog/lease.storage.getForExpiration.func1 at line 381
pkg/sql/catalog/lease/storage.go in pkg/sql/catalog/lease.storage.mustGetDescriptorByID at line 420
pkg/sql/catalog/internal/validate/validate.go in pkg/sql/catalog/internal/validate.Validate at line 71
pkg/sql/catalog/internal/validate/validate.go in pkg/sql/catalog/internal/validate.(*validationErrorAccumulator).validateDescriptorsAtLevel at line 193
pkg/sql/catalog/internal/validate/validate.go in pkg/sql/catalog/internal/validate.Validate.func1 at line 75
pkg/sql/catalog/dbdesc/database_desc.go in pkg/sql/catalog/dbdesc.(*immutable).ValidateSelf at line 254
pkg/sql/catalog/dbdesc/database_desc.go in pkg/sql/catalog/dbdesc.(*immutable).maybeValidateSystemDatabaseSchemaVersion at line 301
pkg/sql/catalog/internal/validate/validate.go in pkg/sql/catalog/internal/validate.(*validationErrorAccumulator).Report at line 177
pkg/sql/catalog/internal/validate/validate.go in pkg/sql/catalog/internal/validate.(*validationErrorAccumulator).decorate at line 244
pkg/sql/opt/optbuilder/select.go in pkg/sql/opt/optbuilder.(*Builder).buildDataSource at line 89
pkg/sql/opt/optbuilder/select.go in pkg/sql/opt/optbuilder.(*Builder).buildDataSource at line 134
pkg/sql/opt/optbuilder/util.go in pkg/sql/opt/optbuilder.(*Builder).resolveDataSource at line 666
pkg/sql/opt_catalog.go in pkg/sql.(*optCatalog).ResolveDataSource at line 261
pkg/sql/schema_resolver.go in pkg/sql.(*schemaResolver).canResolveDescUnderSchema at line 408
pkg/sql/authorization.go in pkg/sql.(*planner).CheckPrivilegeForUser at line 273
pkg/sql/authorization.go in pkg/sql.(*planner).HasPrivilege at line 198
pkg/sql/user.go in pkg/sql.(*planner).CheckRoleExists at line 492
pkg/sql/authorization.go in pkg/sql.(*planner).MemberOfWithAdminOption at line 546
pkg/sql/authorization.go in pkg/sql.MemberOfWithAdminOption at line 568
pkg/sql/catalog/descs/helpers.go in pkg/sql/catalog/descs.PrefixAndTable at line 129
pkg/sql/catalog/descs/helpers.go in pkg/sql/catalog/descs.getObjectPrefix at line 92
pkg/sql/catalog/descs/getters.go in pkg/sql/catalog/descs.ByNameGetter.Database at line 244
pkg/sql/catalog/descs/descriptor.go in pkg/sql/catalog/descs.getDescriptorByName at line 393
pkg/sql/catalog/descs/descriptor.go in pkg/sql/catalog/descs.(*Collection).getNonVirtualDescriptorID at line 615
pkg/sql/catalog/descs/descriptor.go in pkg/sql/catalog/descs.(*Collection).getNonVirtualDescriptorID.func6 at line 575
pkg/sql/catalog/descs/leased_descriptors.go in pkg/sql/catalog/descs.(*leasedDescriptors).getByName at line 190
pkg/sql/catalog/lease/lease.go in pkg/sql/catalog/lease.(*Manager).AcquireByName at line 1106
pkg/sql/catalog/lease/lease.go in pkg/sql/catalog/lease.(*Manager).Acquire at line 1283
pkg/sql/catalog/lease/lease.go in pkg/sql/catalog/lease.(*Manager).readOlderVersionForTimestamp at line 547
pkg/sql/catalog/lease/storage.go in pkg/sql/catalog/lease.storage.getForExpiration at line 375
pkg/kv/db.go in pkg/kv.(*DB).Txn at line 1036
pkg/kv/db.go in pkg/kv.(*DB).TxnWithAdmissionControl at line 1061
pkg/kv/db.go in pkg/kv.runTxn at line 1098
pkg/kv/txn.go in pkg/kv.(*Txn).exec at line 1057
pkg/sql/catalog/lease/storage.go in pkg/sql/catalog/lease.storage.getForExpiration.func1 at line 381
pkg/sql/catalog/lease/storage.go in pkg/sql/catalog/lease.storage.mustGetDescriptorByID at line 420
pkg/sql/catalog/internal/validate/validate.go in pkg/sql/catalog/internal/validate.Validate at line 71
pkg/sql/catalog/internal/validate/validate.go in pkg/sql/catalog/internal/validate.(*validationErrorAccumulator).validateDescriptorsAtLevel at line 193
pkg/sql/catalog/internal/validate/validate.go in pkg/sql/catalog/internal/validate.Validate.func1 at line 75
pkg/sql/catalog/dbdesc/database_desc.go in pkg/sql/catalog/dbdesc.(*immutable).ValidateSelf at line 254
pkg/sql/catalog/dbdesc/database_desc.go in pkg/sql/catalog/dbdesc.(*immutable).maybeValidateSystemDatabaseSchemaVersion at line 301

Tags

Tag Value
Command server
Environment v24.3.2
Go Version go1.22.8 X:nocoverageredesign
Platform linux amd64
Distribution CCL
Cockroach Release v24.3.2
Cockroach SHA 2c5477e
# of CPUs 4
# of Goroutines 627

Jira issue: CRDB-46301

@cockroach-sentry cockroach-sentry added branch-release-24.3 Used to mark GA and release blockers, technical advisories, and bugs for 24.3 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 Jan 8, 2025
Copy link

blathers-crl bot commented Jan 8, 2025

CC'ing via the CODEOWNERS-based sentry heuristic:

  • @cockroachdb/sql-foundations

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@blathers-crl blathers-crl bot added T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) X-blathers-triaged blathers was able to find an owner labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch-release-24.3 Used to mark GA and release blockers, technical advisories, and bugs for 24.3 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. T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) X-blathers-triaged blathers was able to find an owner
Projects
None yet
Development

No branches or pull requests

1 participant