-
Notifications
You must be signed in to change notification settings - Fork 15
Conversation
This reverts commit d94823a.
Generate changelog in
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nits, but overall looks good!
|
||
/** | ||
* Disables TimeLock on all nodes for the given namespaces. | ||
* Should be called exactly once prior to a restore operation. Calling this on multiple nodes will cause conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
funny fact: we have a NonIdempotent
annotation. Check its javadoc...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🌶️
atlasdb-backup/src/main/java/com/palantir/atlasdb/backup/AtlasRestoreService.java
Outdated
Show resolved
Hide resolved
@@ -98,16 +151,65 @@ public static AtlasRestoreService create( | |||
Set<Namespace> namespaces, BiConsumer<String, RangesForRepair> repairTable) { | |||
Map<Namespace, CompletedBackup> completedBackups = getCompletedBackups(namespaces); | |||
Set<Namespace> namespacesToRepair = completedBackups.keySet(); | |||
restoreTables(repairTable, completedBackups, namespacesToRepair); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
restore -> repair
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done (also renamed the restoreTransactionsTables
method below to repairTransactionsTables
)
Released 0.538.0 |
Goals (and why):
Final part of the production code for Atlas Backup/Restore work stream.
Wires up the AllNodesDisabledNamespacesUpdater, added in #5876, to the TimeLockManagementResource, and adds new public methods in AtlasRestoreService.
==COMMIT_MSG==
Added AtlasRestoreService methods
prepareRestore
andcompleteRestore
, which will respectively disable and re-enable TimeLock, and should be called during the restore process.==COMMIT_MSG==
Implementation Description (bullets):
Testing (What was existing testing like? What have you done to improve it?):
Concerns (what feedback would you like?):
Do we want to take the time to add retry logic now? These methods should now work end-to-end, although flakes may require manual action.
Where should we start reviewing?: AtlasRestoreService
Priority (whenever / two weeks / yesterday): ASAP, the next parts are blocked on this piece.