mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-19 12:34:48 +08:00
fix timeout buggify
This commit is contained in:
parent
1b0780398f
commit
b51e9430a5
@ -7887,10 +7887,6 @@ ACTOR Future<std::vector<std::pair<UID, StorageWiggleValue>>> readStorageWiggleV
|
||||
IncludeVersion());
|
||||
state Reference<ReadYourWritesTransaction> tr(new ReadYourWritesTransaction(cx));
|
||||
state std::vector<std::pair<UID, StorageWiggleValue>> res;
|
||||
|
||||
if (g_network->isSimulated() && BUGGIFY_WITH_PROB(0.01)) {
|
||||
throw timed_out();
|
||||
}
|
||||
// read the wiggling pairs
|
||||
loop {
|
||||
try {
|
||||
|
@ -3105,9 +3105,9 @@ ACTOR Future<StatusReply> clusterGetStatus(
|
||||
if (configuration.get().perpetualStorageWiggleSpeed > 0) {
|
||||
state Future<std::vector<std::pair<UID, StorageWiggleValue>>> primaryWiggleValues;
|
||||
state Future<std::vector<std::pair<UID, StorageWiggleValue>>> remoteWiggleValues;
|
||||
storageWiggler["error"] = "";
|
||||
primaryWiggleValues = timeoutError(readStorageWiggleValues(cx, true, true), 1.0);
|
||||
remoteWiggleValues = timeoutError(readStorageWiggleValues(cx, false, true), 1.0);
|
||||
double timeout = g_network->isSimulated() && BUGGIFY_WITH_PROB(0.01) ? 0.0 : 2.0;
|
||||
primaryWiggleValues = timeoutError(readStorageWiggleValues(cx, true, true), timeout);
|
||||
remoteWiggleValues = timeoutError(readStorageWiggleValues(cx, false, true), timeout);
|
||||
wait(store(
|
||||
storageWiggler,
|
||||
storageWigglerStatsFetcher(db->get().distributor, configuration.get(), cx, true, &messages)) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user