mirror of
https://github.com/apple/foundationdb.git
synced 2025-06-02 03:12:12 +08:00
FastRestore:Applier:Treat future_version as key not exist
This commit is contained in:
parent
d5025a1779
commit
87a557dcb4
@ -244,17 +244,25 @@ ACTOR static Future<Void> getAndComputeStagingKeys(
|
||||
}
|
||||
wait(success(fValues[i]));
|
||||
} catch (Error& e) {
|
||||
if (e.code() == error_code_key_not_found) {
|
||||
keyNotFounds.push_back(i);
|
||||
if (e.code() == error_code_key_not_found || e.code() == error_code_transaction_too_old ||
|
||||
e.code() == error_code_future_version) {
|
||||
keyNotFounds.insert(i);
|
||||
} else {
|
||||
hasError = true;
|
||||
}
|
||||
if (retries > 20) {
|
||||
TraceEvent(SevError, "GetAndComputeStagingKeys", applierID)
|
||||
.detail("BatchIndex", batchIndex)
|
||||
.detail("KeyIndex", i)
|
||||
.error(e);
|
||||
}
|
||||
wait(tr->onError(e));
|
||||
}
|
||||
}
|
||||
if (!hasError) {
|
||||
break;
|
||||
}
|
||||
retries++;
|
||||
}
|
||||
|
||||
ASSERT(fValues.size() == incompleteStagingKeys.size());
|
||||
|
Loading…
x
Reference in New Issue
Block a user