Description
It was discussed on Slack with the backup team that the transactions xattrs metadata, which is also checked by the restore tools, would be changing slightly to be made more compact. This ticket is to verify that the relevant changes were made and that the restore tools look at the new metadata, and if not, to make those changes.
The metadata structure is in the transactions RFC and reproduced here for convenience:
{
|
"xattrs": { |
"txn": { |
"id": { |
"txn": "6a919480-d9fd-4d0d-9074-2506b3a210d1", |
"atmpt": "91a8e712-b407-497d-a0de-97835cf0c7cc" |
},
|
"atr": { |
"id": "atr-324-#37", |
"bkt": "default", |
"coll": "_default._default" |
},
|
"op": { |
"type": "replace", |
"stgd": { |
"val": 2 |
}
|
},
|
"restore": { |
"CAS": "0x15a9edcf58d60000", |
"exptime": 0, |
"revid": "80" |
}
|
}
|
}
|
}
|
|
|
The fields that restore will want are those under the "restore" key, plus the "op.type".
op.type is required for something discussed on Slack: if op.type == "insert", then the document is a marker document that's been created for the transaction. E.g. it did not exist before the transaction, and so it should not be restored at all - this document should be skipped by the restore process.
Attachments
Issue Links
- relates to
-
MB-34371 TXN support retrieve rev id from TXN xattrs
- Closed
For Gerrit Dashboard: MB-35725 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
114240,7 | MB-35725 Update transaction key names for meta data | mad-hatter | backup | Status: MERGED | +2 | +1 |
114317,1 | Merge branch 'mad-hatter' into master | master | backup | Status: MERGED | +2 | +1 |