Details
-
Bug
-
Resolution: Fixed
-
Minor
-
7.0.0, 7.0.1, 7.0.2
-
None
-
Untriaged
-
1
-
Unknown
-
KV-Engine-Sept-21
Description
As reported via MB-38788, couchstore compaction ends up setting the disk block type of the very first block incorrectly to type "Header".
While we have fixed this in 7.0.0 via MB-38788, when reading couchstore files created (specifically compacted) by earlier versions using couch_dbdump --iterate-headers, the incorrect block type results in an error being reported after scanning the last valid header:
couch_dbdump --iterate-headers --no-body --dump-headers 59.couch.16
|
...
|
Doc seq: 496985
|
id: (collection:0x0:default)_sync:rev:55479587-2ebd-46cf-8282-9e8462e0b876:0:
|
rev: 199254
|
content_meta: 0x3
|
size (on disk): 0
|
cas: 1630798954597122048, expiry: 1630798954, flags: 50331648, datatype: 0x00 (raw)
|
doc deleted (explicit)
|
|
Failed to dump database "59.couch.16": checksum fail
|
This is potentially confusing / misleading for a user, who might believe the file is corrupt when it's actually fine.
Attachments
Issue Links
- relates to
-
MB-38788 compaction sets incorrect block type for offset 0
- Closed