ErrLookup › dgraph-io/badger
dgraph-io/badger
Fast key-value DB in Go. · Go · 67 source files
Analyzed at 2a001d466f on 2026-09-05. 133 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
ErrValueLogSize Invalid ValueLogFileSize, must be in range [1MB, 2GB) | error_code | error | badger, configuration, validation, storage |
ErrKeyNotFound Key not found | error_code | info | badger, key-not-found, read-path |
ErrTxnTooBig Txn is too big to fit into one request | error_code | error | badger, transaction, batching, write-path |
ErrConflict Transaction Conflict. Please retry | error_code | warning | badger, transaction, concurrency, optimistic-locking |
ErrReadOnlyTxn No sets or deletes are allowed in a read-only transaction | error_code | error | badger, transaction, read-only, api-misuse |
ErrDiscardedTxn This transaction has been discarded. Create a new one | error_code | error | badger, transaction, lifecycle, api-misuse |
ErrEmptyKey Key cannot be empty | error_code | error | badger, validation, key, api-misuse |
ErrInvalidKey Key is using a reserved !badger! prefix | error_code | error | badger, validation, reserved-prefix, key |
ErrBannedKey Key is using the banned prefix | error_code | error | badger, validation, namespaces, multi-tenant |
ErrThresholdZero Value log GC can't run because threshold is set to zero | error_code | error | badger, garbage-collection, configuration, storage |
ErrNoRewrite Value log GC attempt didn't result in any cleanup | error_code | info | badger, garbage-collection, value-log, sentinel-error |
ErrRejected Value log GC request rejected | error_code | warning | badger, garbage-collection, concurrency, lifecycle |
ErrInvalidRequest Invalid request | error_code | error | badger, validation, arguments, garbage-collection |
ErrManagedTxn Invalid API request. Not allowed to perform this action using ManagedDB | error_code | error | badger, managed-db, transactions, api-misuse |
ErrNamespaceMode Invalid API request. Not allowed to perform this action when NamespaceMode is no | error_code | error | badger, namespace, configuration, api-misuse |
ErrInvalidDump Data dump cannot be read | error_code | error | badger, backup, restore, data-corruption |
ErrZeroBandwidth Bandwidth must be greater than zero | error_code | error | badger, sequence, validation, configuration |
ErrWindowsNotSupported Read-only mode is not supported on Windows | error_code | error | badger, windows, read-only, platform-limitation |
ErrPlan9NotSupported Read-only mode is not supported on Plan 9 | error_code | error | badger, plan9, read-only, platform-limitation |
ErrTruncateNeeded Log truncate required to run DB. This might result in data loss | error_code | error | badger, corruption, wal, truncation, read-only |
ErrBlockedWrites Writes are blocked, possibly due to DropAll or Close | error_code | error | badger, concurrency, lifecycle, writes-blocked |
ErrNilCallback Callback cannot be nil | error_code | error | badger, api-misuse, nil-argument, subscriptions |
ErrEncryptionKeyMismatch Encryption key mismatch | error_code | critical | badger, encryption, config, key-rotation |
ErrInvalidDataKeyID Invalid datakey id | error_code | error | badger, encryption, key-registry, data-key |
ErrInvalidEncryptionKey Encryption key's length shouldeither 16, 24, or 32 bytes | error_code | error | badger, encryption, validation, key-length |
ErrGCInMemoryMode Cannot run value log GC when DB is opened in InMemory mode | error_code | error | badger, in-memory, value-log-gc, configuration |
ErrGCInReadOnlyMode Cannot run value log GC when DB is opened in ReadOnly mode | error_code | error | badger, read-only, value-log-gc, configuration |
ErrDBClosed DB Closed | error_code | error | badger, closed-db, lifecycle, race-condition |
| Cannot have 1 compactor. Need at least 2 | exception | error | badger, configuration, compaction, options-validation |
| Cannot use badger in Disk-less mode with Dir or ValueDir set | exception | error | badger, configuration, in-memory, options-validation |
| vlogPercentile must be within range of 0.0-1.0 | exception | error | badger, configuration, validation |
| Invalid ValueThreshold, must be less or equal to %d | exception | error | badger, configuration, validation |
| Valuethreshold %d greater than max batch size of %d. Either | exception | error | badger, configuration, validation |
| BlockCacheSize should be set since compression/encryption ar | panic | error | badger, panic, configuration |
| While setting banned keys: %w | exception | critical | badger, open, io, corruption |
| Ptrs and Entries don't match: %+v | exception | critical | badger, internal, invariant-violation |
errNoRoom No room for write | error_code | error | badger, write, backpressure, closed |
| Cannot use GetSequence with managedDB=true. | panic | error | badger, panic, sequence, managed-db |
| Cannot use GetSequence in read-only mode. | panic | error | badger, panic, sequence, read-only |
| Cannot flatten in read-only mode. | panic | error | badger, panic, flatten, read-only |
| Attempting to drop data in read-only mode. | panic | error | badger, read-only, panic, drop-all |
| Cannot ban namespace in read-only mode. | panic | error | badger, read-only, panic, namespace |
| Cannot find directory %q for read-only open | exception | error | badger, read-only, filesystem, missing-directory |
| invalid cache type | exception | warning | badger, cache, invalid-argument |
| %s with size %d exceeded %d limit. %s: %s | exception | error | badger, key-size-limit, lsm, storage |
| Trying to commit a discarded txn | exception | error | badger, transaction, double-commit, lifecycle |
| CommitTs cannot be zero. Please use commitAt instead | exception | error | badger, managed-mode, commit-timestamp, transaction |
| ReadTs should not be retrieved for managed DB | panic | error | badger, managed-mode, read-timestamp, panic |
| Unclosed iterator at time of Txn.Discard. | panic | error | badger, iterator, transaction-lifecycle, panic |
| txn callback is nil | panic | critical | panic, goroutine, internal-invariant, commit-callback |
| Must have caught a nil callback for txn.CommitWith | panic | critical | panic, nil-callback, internal-invariant, commit-callback |
| Nil callback provided to CommitWith | panic | error | panic, nil-callback, public-api, commit |
| Update can only be used with managedDB=false. | panic | error | panic, managed-transactions, public-api, mode-mismatch |
| cannot use NewWriteBatch in managed mode. Use NewWriteBatchA | panic | error | panic, managed-transactions, write-batch, mode-mismatch |
| SetEntryAt can only be used in managed mode. Use SetEntry in | exception | error | error, managed-transactions, write-batch, versioning |
| wb.err: %w err: %w | exception | error | error, write-batch, async, error-wrapping, flush |
| This transaction has been discarded. Create a new one | panic | error | panic, discarded-transaction, iterator, lifecycle |
| DB Closed | panic | error | panic, db-closed, iterator, shutdown-order |
| opt.Prefix should be nil for NewKeyIterator. | panic | error | panic, iterator, options-validation, prefix |
| Cannot use NewTransactionAt with managedDB=false. Use NewTra | panic | error | go, badger, managed-transactions, panic, api-misuse |
| cannot use NewWriteBatchAt with managedDB=false. Use NewWrit | panic | error | go, badger, managed-transactions, write-batch, panic |
| cannot use NewManagedWriteBatch with managedDB=false. Use Ne | panic | error | go, badger, managed-transactions, write-batch, panic |
| Cannot use CommitAt with managedDB=false. Use Commit instead | panic | error | go, badger, managed-transactions, commit, panic |
| Cannot use SetDiscardTs with managedDB=false. | panic | error | go, badger, managed-transactions, garbage-collection, panic |
| This API can not be called in managed mode. | panic | error | badger, panic, managed-mode, api-misuse |
| This API can only be called in managed mode. | panic | error | badger, panic, managed-mode, api-misuse |
| Unable to do incremental writes because MemTable has data | exception | error | badger, streamwriter, incremental-write, memtable |
| error during flatten in StreamWriter: %w | exception | error | badger, streamwriter, compaction, flatten |
| write performed on closed stream: %d | panic | critical | badger, panic, streamwriter, concurrency |
| keys not in sorted order (last key: %s, key: %s) | exception | error | sorted-order, sstable, data-loading |
| file does not exist for table %d | exception | critical | manifest, recovery, data-loss |
| error opening table %s: %v %s | exception | critical | corruption, sstable, recovery |
| manifest records table %s at level %d, but MaxLevels is %d | exception | error | manifest, maxlevels, configuration |
| Base level can't be zero. | panic | critical | panic, compaction, internal-invariant |
| Filesizes cannot be zero. Targets are not set | exception | error | compaction, targets, internal-api |
| there is a non-empty level %d above base level %d | exception | error | compaction, levels, internal-api |
errFillTables Unable to fill tables | error_code | info | compaction, sentinel-error, benign |
| no manifest found, required for read-only db | exception | error | manifest, read-only, open |
errBadMagic manifest has bad magic | error_code | error | |
errBadChecksum manifest has checksum mismatch | error_code | error | |
| manifest has unsupported version: %d (we support %d). Please | exception | error | |
| cannot open DB because the external magic number doesn't mat | exception | error | |
| Buffer length: %d greater than file size: %d. Manifest file | exception | error | |
| MANIFEST invalid, table %d exists | exception | error | |
| MANIFEST file has invalid manifestChange op | exception | error | |
errStop Stop iteration | error_code | error | |
errTruncate Do truncate | error_code | error | |
| value log file already marked for deletion fid: %d | exception | error | |
| Empty value: %+v | exception | error | go, badger, value-log, corruption, data-integrity |
| Unable to open log dir. | exception | error | go, badger, filesystem, io, config |
| Unable to parse log id. | exception | error | go, badger, value-log, filename, config |
| Duplicate file found. Please delete one. | exception | error | go, badger, value-log, duplicate-files, data-integrity |
| Unable to find fid: %d | exception | warning | go, badger, value-log, garbage-collection, concurrency |
| %s. Path=%s. Error=%v | exception | error | storage, badger, value-log, file-io |
| Request size offset %d is bigger than maximum offset %d | exception | error | badger, value-log, request-size, configuration |
| file with ID: %d not found | exception | error | badger, value-log, stale-pointer, data-loss |
| Invalid value pointer offset: %d greater than current offset | exception | error | badger, value-log, corruption, crash-recovery |
| Invalid read: Len: %d read at:[%d:%d] | exception | error | badger, value-log, corruption, truncated-entry |
| Unable to parse log id. | exception | error | badger, storage, corrupt-file, startup |
| Unable to open mem dir. | exception | critical | badger, filesystem, permissions, startup |
| File %s already exists | exception | error | badger, memtable, file-conflict, startup |
| while file.stat on file: %s, error: %v | exception | error | badger, memtable, io, truncate |
| ERROR: compression level(%v) must be greater than zero | exception | error | badger, configuration, compression, superflag |
| ERROR: Invalid badger.compression argument | exception | error | badger, configuration, compression, superflag, parsing |
| ERROR: compression type (%s) invalid | exception | error | badger, configuration, compression, superflag |
| Backup: Item Version: %d less than sinceTs: %d | exception | error | badger, backup, incremental-backup, versioning |
errNoMerge No need for merge | error_code | info | badger, merge-operator, sentinel-error, internal |
| keyRange not found | console | critical | badger, compaction, invariant-violation, manifest, fatal |
| Assert failed | console | error | |
ErrEOF ErrEOF: End of file | error_code | error | |
ErrCommitAfterFinish Batch commit not permitted after finish | error_code | error | |
| Throttle Do Done mismatch | panic | error | |
ErrChecksumMismatch checksum mismatch | error_code | error | |
| checksum type not supported | panic | error | panic, checksum, badger |
| Unsupported compression type | exception | error | compression, options, table-builder |
| file already exists: %s | exception | error | filesystem, file-conflict, sst |
| Block size cannot be zero | exception | error | options, validation, block-size |
| Invalid filename: %s | exception | error | filesystem, filename, parsing |
| initIndex crashed: %v %s | exception | critical | data-corruption, panic, mmap, storage |
| invalid table size in footer. Data corrupted | exception | critical | data-corruption, footer, truncated-file, storage |
| invalid checksum length in footer. Data corrupted | exception | critical | data-corruption, checksum, footer, storage |
| invalid index length in footer. Data corrupted | exception | critical | data-corruption, footer, index, storage |
| failed to read block offset from index. Data corrupted | exception | critical | data-corruption, flatbuffers, index, encryption |
| Index Cache must be set for encrypted workloads | panic | error | encryption, configuration, panic, index-cache |
| block out of index | exception | error | iterator, index, bounds, storage |
| invalid checksum length. Either the data is corrupted or the | exception | critical | compression, checksum, data-corruption, configuration |
| Unsupported compression type | exception | critical | compression, version-mismatch, data-corruption, storage |
| Invalid range: %s | exception | error | go, badger, input-validation, trie |
| while parsing ignore bytes: %s: %w | exception | error | go, badger, input-validation, trie |
| Cannot acquire directory lock on %q. Another process is usi | exception | error | go, badger, file-lock, aix, concurrency |
| Cannot acquire directory lock on %q. Another process is usi | exception | error | go, badger, file-lock, unix, concurrency |
| Arena too small, toWrite:%d newTotal:%d limit:%d | panic | critical | go, badger, skiplist, memory, panic |
| Equality can happen only on base level: %d | panic | critical | go, badger, skiplist, concurrency, panic |