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: db.go:817: log.Fatal: pebble: fatal commit error: no data available (1) attached stack trace -- stack trace: | github.com/cockroachdb/pebble.(*DB).applyInternal | github.com/cockroachdb... #131170

Closed
cockroach-sentry opened this issue Sep 22, 2024 · 1 comment
Labels
A-storage Relating to our storage engine (Pebble) on-disk storage. branch-release-23.1 Used to mark GA and release blockers, technical advisories, and bugs for 23.1 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. T-storage Storage Team X-blathers-triaged blathers was able to find an owner

Comments

@cockroach-sentry
Copy link
Collaborator

cockroach-sentry commented Sep 22, 2024

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

Panic Message:

db.go:817: log.Fatal: pebble: fatal commit error: no data available
(1) attached stack trace
  -- stack trace:
  | github.com/cockroachdb/pebble.(*DB).applyInternal
  | 	github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/db.go:817
  | github.com/cockroachdb/pebble.(*DB).Apply
  | 	github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/db.go:752
  | github.com/cockroachdb/pebble.(*Batch).Commit
  | 	github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/batch.go:1155
  | github.com/cockroachdb/cockroach/pkg/storage.(*pebbleBatch).Commit
  | 	github.com/cockroachdb/cockroach/pkg/storage/pebble_batch.go:556
  | github.com/cockroachdb/cockroach/pkg/kv/kvserver/logstore.(*LogStore).storeEntriesAndCommitBatch
  | 	github.com/cockroachdb/cockroach/pkg/kv/kvserver/logstore/logstore.go:272
  | github.com/cockroachdb/cockroach/pkg/kv/kvserver/logstore.(*LogStore).StoreEntries
  | 	github.com/cockroachdb/cockroach/pkg/kv/kvserver/logstore/logstore.go:144
  | github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*Replica).handleRaftReadyRaftMuLocked
  | 	github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/replica_raft.go:979
  | github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*Replica).handleRaftReady
  | 	github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/replica_raft.go:725
  | github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*Store).processReady
  | 	github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/store_raft.go:646
  | github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*raftSchedulerShard).worker
  | 	github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/scheduler.go:395
  | github.com/cockroachdb/cockroach/pkg/kv/kvserver.(*raftScheduler).Start.func2
  | 	github.com/cockroachdb/cockroach/pkg/kv/kvserver/pkg/kv/kvserver/scheduler.go:302
  | github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx.func2
  | 	github.com/cockroachdb/cockroach/pkg/util/stop/stopper.go:470
  | runtime.goexit
  | 	GOROOT/src/runtime/asm_amd64.s:1594
Wraps: (2) secondary error attachment
  | no data available
  | (1) no data available
  | Error types: (1) syscall.Errno
Wraps: (3) log.Fatal: pebble: fatal commit error: no data available
Error types: (1) *withstack.withStack (2) *secondary.withSecondaryError (3) *errutil.leafError
-- report composition:
*errutil.leafError: log.Fatal: pebble: fatal commit error: no data available
*secondary.withSecondaryError
db.go:817: *withstack.withStack (top exception)
Stacktrace (expand for inline code snippets):

GOROOT/src/runtime/asm_amd64.s#L1593-L1595

sp.UpdateGoroutineIDToCurrent()
f(ctx)
}()

https://github.com/cockroachdb/cockroach/blob/6bd6e0c65a2eba531e7a8412d63988abb5b50120/pkg/kv/kvserver/pkg/kv/kvserver/scheduler.go#L301-L303
https://github.com/cockroachdb/cockroach/blob/6bd6e0c65a2eba531e7a8412d63988abb5b50120/pkg/kv/kvserver/pkg/kv/kvserver/scheduler.go#L394-L396
https://github.com/cockroachdb/cockroach/blob/6bd6e0c65a2eba531e7a8412d63988abb5b50120/pkg/kv/kvserver/pkg/kv/kvserver/store_raft.go#L645-L647
https://github.com/cockroachdb/cockroach/blob/6bd6e0c65a2eba531e7a8412d63988abb5b50120/pkg/kv/kvserver/pkg/kv/kvserver/replica_raft.go#L724-L726
https://github.com/cockroachdb/cockroach/blob/6bd6e0c65a2eba531e7a8412d63988abb5b50120/pkg/kv/kvserver/pkg/kv/kvserver/replica_raft.go#L978-L980
batch := newStoreEntriesBatch(s.Engine)
return s.storeEntriesAndCommitBatch(ctx, state, m, cb, stats, batch)
}

} else {
if err := batch.Commit(willSync); err != nil {
const expl = "while committing batch"

}
err := p.batch.Commit(opts)
if err != nil {

github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/batch.go#L1154-L1156
github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/db.go#L751-L753
github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/db.go#L816-L818

GOROOT/src/runtime/asm_amd64.s in runtime.goexit at line 1594
pkg/util/stop/stopper.go in pkg/util/stop.(*Stopper).RunAsyncTaskEx.func2 at line 470
pkg/kv/kvserver/pkg/kv/kvserver/scheduler.go in pkg/kv/kvserver.(*raftScheduler).Start.func2 at line 302
pkg/kv/kvserver/pkg/kv/kvserver/scheduler.go in pkg/kv/kvserver.(*raftSchedulerShard).worker at line 395
pkg/kv/kvserver/pkg/kv/kvserver/store_raft.go in pkg/kv/kvserver.(*Store).processReady at line 646
pkg/kv/kvserver/pkg/kv/kvserver/replica_raft.go in pkg/kv/kvserver.(*Replica).handleRaftReady at line 725
pkg/kv/kvserver/pkg/kv/kvserver/replica_raft.go in pkg/kv/kvserver.(*Replica).handleRaftReadyRaftMuLocked at line 979
pkg/kv/kvserver/logstore/logstore.go in pkg/kv/kvserver/logstore.(*LogStore).StoreEntries at line 144
pkg/kv/kvserver/logstore/logstore.go in pkg/kv/kvserver/logstore.(*LogStore).storeEntriesAndCommitBatch at line 272
pkg/storage/pebble_batch.go in pkg/storage.(*pebbleBatch).Commit at line 556
github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/batch.go in github.com/cockroachdb/pebble.(*Batch).Commit at line 1155
github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/db.go in github.com/cockroachdb/pebble.(*DB).Apply at line 752
github.com/cockroachdb/pebble/external/com_github_cockroachdb_pebble/db.go in github.com/cockroachdb/pebble.(*DB).applyInternal at line 817

Tags

Tag Value
Command server
Environment v23.1.10
Go Version go1.19.10
Platform linux amd64
Distribution CCL
Cockroach Release v23.1.10
Cockroach SHA 6bd6e0c
# of CPUs 8
# of Goroutines 530

Jira issue: CRDB-42426

@cockroach-sentry cockroach-sentry added branch-release-23.1 Used to mark GA and release blockers, technical advisories, and bugs for 23.1 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 22, 2024
@yuzefovich yuzefovich added T-storage Storage Team X-blathers-triaged blathers was able to find an owner labels Nov 13, 2024
@blathers-crl blathers-crl bot added the A-storage Relating to our storage engine (Pebble) on-disk storage. label Nov 13, 2024
@github-project-automation github-project-automation bot moved this to Incoming in Storage Nov 13, 2024
@yuzefovich
Copy link
Member

unactionable

@github-project-automation github-project-automation bot moved this from Incoming to Done in Storage Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-storage Relating to our storage engine (Pebble) on-disk storage. branch-release-23.1 Used to mark GA and release blockers, technical advisories, and bugs for 23.1 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. T-storage Storage Team X-blathers-triaged blathers was able to find an owner
Projects
Status: Done
Development

No branches or pull requests

2 participants