FastRestore:Applier:Treat future_version as key not exist

This commit is contained in:
Meng Xu 2020-06-03 17:17:47 -07:00
parent d5025a1779
commit 87a557dcb4

View File

@ -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());