Skip to content

Commit

Permalink
Allow error when fallback is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nblintao committed Nov 30, 2021
1 parent 8e00a8b commit 9482bea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fdbserver/workloads/GetRangeAndMap.actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "fdbclient/MutationLogReader.actor.h"
#include "fdbclient/Tuple.h"
#include "fdbserver/workloads/workloads.actor.h"
#include "fdbserver/Knobs.h"
#include "flow/Error.h"
#include "flow/IRandom.h"
#include "flow/flow.h"
Expand Down Expand Up @@ -144,8 +145,10 @@ struct GetRangeAndMapWorkload : TestWorkload {
id++;
}
} catch (Error& e) {
if (self->BAD_MAPPER && e.code() == error_code_mapper_bad_index) {
TraceEvent("GetRangeAndMapWorkloadBadMapperDetected").error(e);
if ((self->BAD_MAPPER && e.code() == error_code_mapper_bad_index) ||
(!SERVER_KNOBS->QUICK_GET_VALUE_FALLBACK && e.code() == error_code_quick_get_value_miss) ||
(!SERVER_KNOBS->QUICK_GET_KEY_VALUES_FALLBACK && e.code() == error_code_quick_get_key_values_miss)) {
TraceEvent("GetRangeAndMapWorkloadExpectedErrorDetected").error(e);
} else {
wait(tr.onError(e));
}
Expand Down

0 comments on commit 9482bea

Please sign in to comment.