cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
30.18k stars 3.82k forks source link

Sentry: setting.go:114: log.Fatal: version not initialized (1) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/pkg/clusterversion.(*clusterVersionSetting).activeVersion |... #135198

Open cockroach-sentry opened 1 week ago

cockroach-sentry commented 1 week ago

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

Panic Message:

setting.go:114: log.Fatal: version not initialized
(1) attached stack trace
  -- stack trace:
  | github.com/cockroachdb/cockroach/pkg/clusterversion.(*clusterVersionSetting).activeVersion
  |     pkg/clusterversion/setting.go:114
  | github.com/cockroachdb/cockroach/pkg/clusterversion.(*handleImpl).ActiveVersion
  |     pkg/clusterversion/clusterversion.go:192
  | github.com/cockroachdb/cockroach/pkg/sql/catalog/descs.(*CollectionFactory).NewCollection
  |     pkg/sql/catalog/descs/factory.go:144
  | github.com/cockroachdb/cockroach/pkg/sql.(*Server).newConnExecutor
  |     pkg/sql/conn_executor.go:1178
  | github.com/cockroachdb/cockroach/pkg/sql.(*InternalExecutor).initConnEx
  |     pkg/sql/internal.go:328
  | github.com/cockroachdb/cockroach/pkg/sql.(*InternalExecutor).runWithEx
  |     pkg/sql/internal.go:225
  | github.com/cockroachdb/cockroach/pkg/sql.(*InternalExecutor).execInternal
  |     pkg/sql/internal.go:1273
  | github.com/cockroachdb/cockroach/pkg/sql.(*InternalExecutor).queryInternalBuffered
  |     pkg/sql/internal.go:678
  | github.com/cockroachdb/cockroach/pkg/sql.(*InternalExecutor).queryRowExWithCols
  |     pkg/sql/internal.go:762
  | github.com/cockroachdb/cockroach/pkg/sql.(*InternalExecutor).QueryRowExWithCols
  |     pkg/sql/internal.go:749
  | github.com/cockroachdb/cockroach/pkg/sql.(*InternalExecutor).QueryRowEx
  |     pkg/sql/internal.go:722
  | github.com/cockroachdb/cockroach/pkg/server.gcSystemLog.func1
  |     pkg/server/server_systemlog_gc.go:96
  | github.com/cockroachdb/cockroach/pkg/server.gcSystemLog
  |     pkg/server/server_systemlog_gc.go:132
  | github.com/cockroachdb/cockroach/pkg/server.runSystemLogGCForOneTable
  |     pkg/server/server_systemlog_gc.go:179
  | github.com/cockroachdb/cockroach/pkg/server.runSystemLogGC
  |     pkg/server/server_systemlog_gc.go:203
  | github.com/cockroachdb/cockroach/pkg/server.startSystemLogsGC.func1
  |     pkg/server/server_systemlog_gc.go:263
  | github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx.func2
  |     pkg/util/stop/stopper.go:498
  | runtime.goexit
  |     src/runtime/asm_amd64.s:1695
Wraps: (2) log.Fatal: version not initialized
Error types: (1) *withstack.withStack (2) *errutil.leafError
-- report composition:
*errutil.leafError: log.Fatal: version not initialized
setting.go:114: *withstack.withStack (top exception)
Stacktrace (expand for inline code snippets): [src/runtime/asm_amd64.s#L1694-L1696](src/runtime/asm_amd64.s#L1694-L1696) [pkg/util/stop/stopper.go#L497-L499](pkg/util/stop/stopper.go#L497-L499) [pkg/server/server_systemlog_gc.go#L262-L264](pkg/server/server_systemlog_gc.go#L262-L264) [pkg/server/server_systemlog_gc.go#L202-L204](pkg/server/server_systemlog_gc.go#L202-L204) [pkg/server/server_systemlog_gc.go#L178-L180](pkg/server/server_systemlog_gc.go#L178-L180) [pkg/server/server_systemlog_gc.go#L131-L133](pkg/server/server_systemlog_gc.go#L131-L133) [pkg/server/server_systemlog_gc.go#L95-L97](pkg/server/server_systemlog_gc.go#L95-L97) [pkg/sql/internal.go#L721-L723](pkg/sql/internal.go#L721-L723) [pkg/sql/internal.go#L748-L750](pkg/sql/internal.go#L748-L750) [pkg/sql/internal.go#L761-L763](pkg/sql/internal.go#L761-L763) [pkg/sql/internal.go#L677-L679](pkg/sql/internal.go#L677-L679) [pkg/sql/internal.go#L1272-L1274](pkg/sql/internal.go#L1272-L1274) [pkg/sql/internal.go#L224-L226](pkg/sql/internal.go#L224-L226) [pkg/sql/internal.go#L327-L329](pkg/sql/internal.go#L327-L329) [pkg/sql/conn_executor.go#L1177-L1179](pkg/sql/conn_executor.go#L1177-L1179) [pkg/sql/catalog/descs/factory.go#L143-L145](pkg/sql/catalog/descs/factory.go#L143-L145) [pkg/clusterversion/clusterversion.go#L191-L193](pkg/clusterversion/clusterversion.go#L191-L193) [pkg/clusterversion/setting.go#L113-L115](pkg/clusterversion/setting.go#L113-L115)
src/runtime/asm_amd64.s in runtime.goexit at line 1695
pkg/util/stop/stopper.go in pkg/util/stop.(*Stopper).RunAsyncTaskEx.func2 at line 498
pkg/server/server_systemlog_gc.go in pkg/server.startSystemLogsGC.func1 at line 263
pkg/server/server_systemlog_gc.go in pkg/server.runSystemLogGC at line 203
pkg/server/server_systemlog_gc.go in pkg/server.runSystemLogGCForOneTable at line 179
pkg/server/server_systemlog_gc.go in pkg/server.gcSystemLog at line 132
pkg/server/server_systemlog_gc.go in pkg/server.gcSystemLog.func1 at line 96
pkg/sql/internal.go in pkg/sql.(*InternalExecutor).QueryRowEx at line 722
pkg/sql/internal.go in pkg/sql.(*InternalExecutor).QueryRowExWithCols at line 749
pkg/sql/internal.go in pkg/sql.(*InternalExecutor).queryRowExWithCols at line 762
pkg/sql/internal.go in pkg/sql.(*InternalExecutor).queryInternalBuffered at line 678
pkg/sql/internal.go in pkg/sql.(*InternalExecutor).execInternal at line 1273
pkg/sql/internal.go in pkg/sql.(*InternalExecutor).runWithEx at line 225
pkg/sql/internal.go in pkg/sql.(*InternalExecutor).initConnEx at line 328
pkg/sql/conn_executor.go in pkg/sql.(*Server).newConnExecutor at line 1178
pkg/sql/catalog/descs/factory.go in pkg/sql/catalog/descs.(*CollectionFactory).NewCollection at line 144
pkg/clusterversion/clusterversion.go in pkg/clusterversion.(*handleImpl).ActiveVersion at line 192
pkg/clusterversion/setting.go in pkg/clusterversion.(*clusterVersionSetting).activeVersion at line 114

Tags

Tag Value
Command server
Environment v24.3.0-beta.3
Go Version go1.22.5 X:nocoverageredesign
Platform linux amd64
Distribution CCL
Cockroach Release v24.3.0-beta.3
Cockroach SHA c077ebf6e98bcd579481b93c83f14184ab94f2e6
# of CPUs 2
# of Goroutines 558

Jira issue: CRDB-44398

blathers-crl[bot] commented 1 week ago

CC'ing via the CODEOWNERS-based sentry heuristic:

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