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: store_raft.go:505: log.Fatal: ???: raft closed timestamp regression in cmd: "\x15\xb2\xc6m\r\x13\xea\a" (term: 177, index: 739644); batch state: 1657548922.297323544,0, command: 1657548918.245148912,0... #84275

Closed
cockroach-teamcity opened this issue Jul 12, 2022 · 1 comment
Labels
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.

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Jul 12, 2022

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

Panic message:

store_raft.go:505: log.Fatal: ???: raft closed timestamp regression in cmd: "\x15\xb2\xc6m\r\x13\xea\a" (term: 177, index: 739644); batch state: 1657548922.297323544,0, command: 1657548918.245148912,0, lease: repl=(n1,s1):1 seq=211 start=1657548297.993597519,0 exp=1657548931.830921582,0 pro=1657548922.830921582,0, req: <unknown; not leaseholder>, applying at LAI: 320188.
(1) attached stack trace
-- stack trace:
| github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*Store).processReady
| github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/store_raft.go:505
| github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*raftScheduler).worker
| github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/scheduler.go:308
| github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx.func2
| github.com/cockroachdb/cockroach/pkg/util/stop/stopper.go:494
| runtime.goexit
| GOROOT/src/runtime/asm_amd64.s:1581
Wraps: (2) secondary error attachment
| raft closed timestamp regression in cmd: "\x15\xb2\xc6m\r\x13\xea\a" (term: 177, index: 739644); batch state: 1657548922.297323544,0, command: 1657548918.245148912,0, lease: repl=(n1,s1):1 seq=211 start=1657548297.993597519,0 exp=1657548931.830921582,0 pro=1657548922.830921582,0, req: <unknown; not leaseholder>, applying at LAI: 320188.
| (1) assertion failure
| Wraps: (2) attached stack trace
| -- stack trace:
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*replicaAppBatch).assertNoCmdClosedTimestampRegression
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/replica_application_state_machine.go:1112
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*replicaAppBatch).Stage
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/replica_application_state_machine.go:492
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver/apply.mapCmdIter
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver/apply/cmd.go:184
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver/apply.(*Task).applyOneBatch
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver/apply/task.go:280
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver/apply.(*Task).ApplyCommittedEntries
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver/apply/task.go:247
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*Replica).handleRaftReadyRaftMuLocked
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/replica_raft.go:1016
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*Replica).handleRaftReady
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/replica_raft.go:636
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*Store).processReady
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/store_raft.go:504
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*raftScheduler).worker
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/scheduler.go:308
| | github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx.func2
| | github.com/cockroachdb/cockroach/pkg/util/stop/stopper.go:494
| | runtime.goexit
| | GOROOT/src/runtime/asm_amd64.s:1581
| Wraps: (3) raft closed timestamp regression in cmd: "\x15\xb2\xc6m\r\x13\xea\a" (term: 177, index: 739644); batch state: 1657548922.297323544,0, command: 1657548918.245148912,0, lease: repl=(n1,s1):1 seq=211 start=1657548297.993597519,0 exp=1657548931.830921582,0 pro=1657548922.830921582,0, req: <unknown; not leaseholder>, applying at LAI: 320188.
| | Closed timestamp was set by req: <unknown; not leaseholder or not lease request> under lease: ; applied at LAI: 0. Batch idx: 0.
| | This assertion will fire again on restart; to ignore run with env var COCKROACH_RAFT_CLOSEDTS_ASSERTIONS_ENABLED=false
| | Raft log tail:
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| | ×
| | ×
| | ×...

Stacktrace (expand for inline code snippets):

https://github.com/cockroachdb/cockroach/blob/2ca74540cc1603ff810b43399846bb5b7caba651/pkg/kv/kvserver/pkg/kv/kvserver/store_raft.go#L504-L506 in pkg/kv/kvserver.(*Store).processReady
https://github.com/cockroachdb/cockroach/blob/2ca74540cc1603ff810b43399846bb5b7caba651/pkg/kv/kvserver/pkg/kv/kvserver/scheduler.go#L307-L309 in pkg/kv/kvserver.(*raftScheduler).worker

f(ctx)
}()
in pkg/util/stop.(*Stopper).RunAsyncTaskEx.func2
GOROOT/src/runtime/asm_amd64.s#L1580-L1582 in runtime.goexit

pkg/kv/kvserver/pkg/kv/kvserver/store_raft.go in pkg/kv/kvserver.(*Store).processReady at line 505
pkg/kv/kvserver/pkg/kv/kvserver/scheduler.go in pkg/kv/kvserver.(*raftScheduler).worker at line 308
pkg/util/stop/stopper.go in pkg/util/stop.(*Stopper).RunAsyncTaskEx.func2 at line 494
GOROOT/src/runtime/asm_amd64.s in runtime.goexit at line 1581
Tag Value
Cockroach Release v22.1.3
Cockroach SHA: 2ca7454
Platform linux amd64
Distribution CCL
Environment v22.1.3
Command server
Go Version ``
# of CPUs
# of Goroutines

Jira issue: CRDB-17565

@cockroach-teamcity 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 Jul 12, 2022
@yuzefovich
Copy link
Member

dup of #78419

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.
Projects
None yet
Development

No branches or pull requests

2 participants