Description
Problem
In the Mad Hatter timeframe SDKs will be adding support for transactions. There might be a need to do extra work in Tools to support transactions
Related Docs
Top level Transaction PRD
Top level Transaction PRD Design doc
Design
Cbbackupmgr
Speaking with Graham Pople, Dave Rigby, David Haikney and myself it was decided that backup should follow a similar design as XDCR.
- It will backup all the data as usual
- During the restore the following will be done:
- The ATR document for each vBucket will not be restored.
- Any document that has a XATTR transaction will be restored without the XATTR transaction (other XATTRS will be kept)
- The CAS will be reset to the previous CAS which is stored in the XATTR transaction
- cbbackupmgr will note the documents that have been "changed"
- cbbackupmgr will throw a warning that transactions have been decided and that backup can't guarantee atomicity
cbbackup/cbrestore
- Will follow the steps above
cbtransfer
- Will follow the steps above
Attachments
Issue Links
For Gerrit Dashboard: MB-33133 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
105380,8 | MB-33133 cbbackupmgr restore ignore TXN | master | backup | Status: MERGED | +2 | +1 |
105454,7 | MB-33133 pump_mc support for transactions | master | couchbase-cli | Status: MERGED | +2 | +1 |