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

raft: applied(x) is out of range [prevApplied(x), committed(x)] #32927

Closed
tbg opened this issue Dec 7, 2018 · 1 comment
Closed

raft: applied(x) is out of range [prevApplied(x), committed(x)] #32927

tbg opened this issue Dec 7, 2018 · 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.
Milestone

Comments

@tbg
Copy link
Member

tbg commented Dec 7, 2018

https://sentry.io/cockroach-labs/cockroachdb/issues/797760424/?referrer=webhooks_plugin

stopper.go:182: string

github.com/cockroachdb/cockroach/pkg/storage.(*Store).Send.func1

*log.safeError: stopper.go:182: string
  File "runtime/asm_amd64.s", line 573, in call32
  File "runtime/panic.go", line 502, in gopanic
  File "github.com/cockroachdb/cockroach/pkg/storage/store.go", line 3046, in func1
  File "runtime/asm_amd64.s", line 574, in call64
  File "runtime/panic.go", line 502, in gopanic
  File "github.com/cockroachdb/cockroach/pkg/storage/raft.go", line 106, in Panicf
  File "github.com/cockroachdb/cockroach/vendor/go.etcd.io/etcd/raft/log.go", line 212, in appliedTo
  File "github.com/cockroachdb/cockroach/vendor/go.etcd.io/etcd/raft/raft.go", line 356, in newRaft
  File "github.com/cockroachdb/cockroach/vendor/go.etcd.io/etcd/raft/rawnode.go", line 79, in NewRawNode
  File "github.com/cockroachdb/cockroach/pkg/storage/replica.go", line 545, in withRaftGroupLocked
  File "github.com/cockroachdb/cockroach/pkg/storage/replica.go", line 1956, in maybeInitializeRaftGroup
  File "github.com/cockroachdb/cockroach/pkg/storage/replica.go", line 1997, in sendWithRangeID
  File "github.com/cockroachdb/cockroach/pkg/storage/replica.go", line 1969, in Send
  File "github.com/cockroachdb/cockroach/pkg/storage/store.go", line 3167, in Send
  File "github.com/cockroachdb/cockroach/pkg/storage/stores.go", line 185, in Send
  File "github.com/cockroachdb/cockroach/pkg/server/node.go", line 987, in func1
  File "github.com/cockroachdb/cockroach/pkg/util/stop/stopper.go", line 303, in RunTaskWithErr
  File "github.com/cockroachdb/cockroach/pkg/server/node.go", line 974, in batchInternal
  File "github.com/cockroachdb/cockroach/pkg/server/node.go", line 1015, in Batch
  File "github.com/cockroachdb/cockroach/pkg/rpc/context.go", line 431, in Batch
  File "github.com/cockroachdb/cockroach/pkg/kv/transport.go", line 199, in sendBatch
  File "github.com/cockroachdb/cockroach/pkg/kv/transport.go", line 169, in SendNext
  File "github.com/cockroachdb/cockroach/pkg/kv/transport.go", line 169, in SendNext
  File "github.com/cockroachdb/cockroach/pkg/kv/dist_sender.go", line 1319, in sendToReplicas
  File "github.com/cockroachdb/cockroach/pkg/kv/dist_sender.go", line 391, in sendRPC
  File "github.com/cockroachdb/cockroach/pkg/kv/dist_sender.go", line 469, in sendSingleRange
  File "github.com/cockroachdb/cockroach/pkg/kv/dist_sender.go", line 1095, in sendPartialBatch
  File "github.com/cockroachdb/cockroach/pkg/kv/dist_sender.go", line 1017, in func1
  File "github.com/cockroachdb/cockroach/pkg/util/stop/stopper.go", line 385, in func1
@tbg tbg 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 Dec 7, 2018
@tbg tbg changed the title sentry: stopper.go:182: string raft: applied(x) is out of range [prevApplied(x), committed(x)] Dec 11, 2018
@tbg
Copy link
Member Author

tbg commented Dec 11, 2018

I hope this can be tracked back in some form or another to #32631.

The minimum that should happen here is an error that tells us the indexes.

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

1 participant