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:513: log.Fatal: ???: raft closed timestamp regression in cmd: "&DN\n\xb7Ϥ:" (term: 45, index: 36109); batch state: 1664517953.441700327,0, command: 1664517947.950681975,0, lease: repl=(n... #89068

Closed
cockroach-teamcity opened this issue Sep 30, 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 Sep 30, 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/3633733453/?referrer=webhooks_plugin

Panic message:

store_raft.go:513: log.Fatal: ???: raft closed timestamp regression in cmd: "&DN\n\xb7Ϥ:" (term: 45, index: 36109); batch state: 1664517953.441700327,0, command: 1664517947.950681975,0, lease: repl=(n1,s1):1 seq=61 start=1664517739.230136636,0 epo=36 pro=1664517950.950681975,36, req: <unknown; not leaseholder>, applying at LAI: 17680.
(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:513
| 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: "&DN\n\xb7Ϥ:" (term: 45, index: 36109); batch state: 1664517953.441700327,0, command: 1664517947.950681975,0, lease: repl=(n1,s1):1 seq=61 start=1664517739.230136636,0 epo=36 pro=1664517950.950681975,36, req: <unknown; not leaseholder>, applying at LAI: 17680.
| (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:1028
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*Replica).handleRaftReady
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/replica_raft.go:648
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*Store).processReady
| | github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/store_raft.go:512
| | 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: "&DN\n\xb7Ϥ:" (term: 45, index: 36109); batch state: 1664517953.441700327,0, command: 1664517947.950681975,0, lease: repl=(n1,s1):1 seq=61 start=1664517739.230136636,0 epo=36 pro=1664517950.950681975,36, req: <unknown; not leaseholder>, applying at LAI: 17680.
| | 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:
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| |
| | ×
| | ×
| | ×
| | ×
| |
| | ×
| Error types: (1) *assert.withAssertionFailure (2) *withstack.withStack (3) *errutil.leafError
Wraps: (3) log.Fatal: ???: raft closed timestamp regression in cmd: "&DN\n\xb7Ϥ:" (term: 45, index: 36109); batch state: 1664517953.441700327,0, command: 1664517947.950681975,0, lease: repl=(n1,s1):1 seq=61 start=1664517739.230136636,0 epo=36 pro=1664517950.950681975,36, req: <unknown; not leaseholder>, applying at LAI: 17680.
| (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...

Stacktrace (expand for inline code snippets):

https://github.com/cockroachdb/cockroach/blob/bdcab67f778617515597f1012f37f14f622b15a0/pkg/kv/kvserver/pkg/kv/kvserver/store_raft.go#L512-L514 in pkg/kv/kvserver.(*Store).processReady
https://github.com/cockroachdb/cockroach/blob/bdcab67f778617515597f1012f37f14f622b15a0/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 513
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.8
Cockroach SHA: bdcab67
Platform linux amd64
Distribution CCL
Environment v22.1.8
Command start-single-node
Go Version ``
# of CPUs
# of Goroutines

Jira issue: CRDB-20103

@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 Sep 30, 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