Skip to content

Panic with read only open/recover db #454

@necromortis

Description

@necromortis

panic: leveldb: invalid sequence number

goroutine 9 [running]:
github.com/syndtr/goleveldb/leveldb.makeInternalKey(...)
/home/user/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/key.go:77
github.com/syndtr/goleveldb/leveldb.decodeBatchToMem.func1(0x7ea8?, {0x0, 0x2, 0x1, 0x0, 0x0})
/home/user/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/batch.go:303 +0x3f9
github.com/syndtr/goleveldb/leveldb.decodeBatch({0xc0004fa00c, 0x3e8, 0x1df4}, 0xc0000313b0)
/home/user/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/batch.go:281 +0x1d1
github.com/syndtr/goleveldb/leveldb.decodeBatchToMem({0xc0004fa000?, 0x876de0?, 0xc0003a11a0?}, 0xc000031550?, 0xc0003ce000?)
/home/user/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/batch.go:299 +0x209
github.com/syndtr/goleveldb/leveldb.(*DB).recoverJournalRO(0xc0000daa80)
/home/user/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:716 +0x7a5
github.com/syndtr/goleveldb/leveldb.openDB(0xc000236780)
/home/user/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:126 +0x385
github.com/syndtr/goleveldb/leveldb.Open({0x87a230?, 0xc0001c8540?}, 0x1?)
/home/user/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:203 +0x15e
github.com/syndtr/goleveldb/leveldb.OpenFile({0xc00014a8a0?, 0x7fea285cfd48?}, 0xc0000317f8)
/home/user/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:225 +0x50

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions