cockroachdb / cockroachdb/cockroach

Sentry: replica_range_lease.go:553: expiration of liveness record liveness(nid:4 epo:189 exp:1752495958.368446315,0) is not greater than expiration of the previous lease repl=(n4,s4):2 seq=771 start=1...

Open
#150,134 1 comment 0 reactions 0 assignees View on GitHub
branch-release-24.1 C-bug O-sentry T-kv X-blathers-triaged
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

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/6745713160/?referrer=webhooks_plugin](https://cockroach-labs.sentry.io/issues/6745713160/?referrer=webhooks_plugin)

Panic Message:

```
replica_range_lease.go:553: expiration of liveness record liveness(nid:4 epo:189 exp:1752495958.368446315,0) is not greater than expiration of the previous lease repl=(n4,s4):2 seq=771 start=1752495952.466790491,0 exp=1752495958.466621870,0 pro=1752495952.466621870,0 after liveness heartbeat
(1) assertion failure
Wraps: (2)
| (opaque error wrapper)
| type name: github.com/cockroachdb/errors/withstack/*withstack.withStack
| reportable 0:
|
| github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*pendingLeaseRequest).requestLease
| github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/replica_range_lease.go:553
| github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*pendingLeaseRequest).requestLeaseAsync.func1
| github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/replica_range_lease.go:474
| github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx.func2
| github.com/cockroachdb/cockroach/pkg/util/stop/stopper.go:485
| runtime.goexit
| src/runtime/asm_amd64.s:1695
Wraps: (3) expiration of liveness record liveness(nid:4 epo:189 exp:1752495958.368446315,0) is not greater than expiration of the previous lease repl=(n4,s4):2 seq=771 start=1752495952.466790491,0 exp=1752495958.466621870,0 pro=1752495952.466621870,0 after liveness heartbeat
Error types: (1) *assert.withAssertionFailure (2) *errbase.opaqueWrapper (3) *errutil.leafError
-- report composition:
*errutil.leafError: expiration of liveness record liveness(nid:4 epo:189 exp:1752495958.368446315,0) is not greater than expiration of the previous lease repl=(n4,s4):2 seq=771 start=1752495952.466790491,0 exp=1752495958.466621870,0 pro=1752495952.466621870,0 after liveness heartbeat
replica_range_lease.go:553: *withstack.withStack (top exception)
*assert.withAssertionFailure
```

Stacktrace (expand for inline code snippets):

[src/runtime/asm_amd64.s#L1694-L1696](src/runtime/asm_amd64.s#L1694-L1696)
[https://github.com/cockroachdb/cockroach/blob/484f8e2f4d3cb23582416944d79eab72ff42a6a1/pkg/util/stop/stopper.go#L484-L486](https://github.com/cockroachdb/cockroach/blob/484f8e2f4d3cb23582416944d79eab72ff42a6a1/pkg/util/stop/stopper.go#L484-L486)
[https://github.com/cockroachdb/cockroach/blob/484f8e2f4d3cb23582416944d79eab72ff42a6a1/pkg/kv/kvserver/pkg/kv/kvserver/replica_range_lease.go#L473-L475](https://github.com/cockroachdb/cockroach/blob/484f8e2f4d3cb23582416944d79eab72ff42a6a1/pkg/kv/kvserver/pkg/kv/kvserver/replica_range_lease.go#L473-L475)
[https://github.com/cockroachdb/cockroach/blob/484f8e2f4d3cb23582416944d79eab72ff42a6a1/pkg/kv/kvserver/pkg/kv/kvserver/replica_range_lease.go#L552-L554](https://github.com/cockroachdb/cockroach/blob/484f8e2f4d3cb23582416944d79eab72ff42a6a1/pkg/kv/kvserver/pkg/kv/kvserver/replica_range_lease.go#L552-L554)

```
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 485
pkg/kv/kvserver/pkg/kv/kvserver/replica_range_lease.go in pkg/kv/kvserver.(*pendingLeaseRequest).requestLeaseAsync.func1 at line 474
pkg/kv/kvserver/pkg/kv/kvserver/replica_range_lease.go in pkg/kv/kvserver.(*pendingLeaseRequest).requestLease at line 553
```

### Tags

| Tag | Value |
| --- | --- |
| Command | server |
| Environment | v24.1.1 |
| Go Version | go1.22.3 X:nocoverageredesign |
| Platform | linux amd64 |
| Distribution | CCL |
| Cockroach Release | v24.1.1 |
| Cockroach SHA | 484f8e2f4d3cb23582416944d79eab72ff42a6a1 |
| # of CPUs | 8 |
| # of Goroutines | 685 |

Jira issue: CRDB-52584

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.