Details
-
Bug
-
Resolution: Fixed
-
Major
-
master
-
None
-
Untriaged
-
Unknown
Description
In saveDocs, we prepare a batch of updates to write to the DB, followed by a persisted vbState, and then the batch is committed. However the saveVBState is done using a non-batch Put(), which means that the VBstate is persisted before the updates.
This is incorrect, as in the event of a crash we would see the wrong high seqno etc in the vbState compared to the data.
Attachments
For Gerrit Dashboard: MB-26619 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
84998,2 | MB-26619: RocksDB: put vbstate in same batch as updates | master | kv_engine | Status: MERGED | +2 | +1 |