mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-02 03:12:12 +08:00
FastRestore:Sanity check actors do not throw error silently
This commit is contained in:
parent
96c2a164bc
commit
f51fca0bf3
@ -553,8 +553,8 @@ ACTOR static Future<Void> handleApplyToDBRequest(RestoreVersionBatchRequest req,
|
||||
}
|
||||
|
||||
ASSERT(batchData->dbApplier.present());
|
||||
ASSERT(batchData->dbApplier.get().isError()); // writeMutationsToDB actor cannot have error.
|
||||
// We cannot blindly retry because it is not idempodent
|
||||
ASSERT(!batchData->dbApplier.get().isError()); // writeMutationsToDB actor cannot have error.
|
||||
// We cannot blindly retry because it is not idempodent
|
||||
|
||||
wait(batchData->dbApplier.get());
|
||||
|
||||
|
@ -866,6 +866,7 @@ ACTOR static Future<Void> notifyApplierToApplyMutations(Reference<MasterBatchDat
|
||||
}
|
||||
|
||||
ASSERT(batchData->applyToDB.present());
|
||||
ASSERT(!batchData->applyToDB.get().isError());
|
||||
wait(batchData->applyToDB.get());
|
||||
|
||||
// Sanity check all appliers have applied data to destination DB
|
||||
|
Loading…
x
Reference in New Issue
Block a user