limit of getRange in snapTest reduced

With CLIENT_KNOBS->TOO_MANY in snapTest, by the time getRange
gathers all the results, the storage server's oldest version has
gone past the req->version and hence the transaction fails with
transaction_too_old
This commit is contained in:
sramamoorthy 2019-05-13 17:15:55 -07:00 committed by Alex Miller
parent b1b96946af
commit 40358e1dd6
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ public: // workload functions
tr.reset();
loop {
try {
Standalone<RangeResultRef> kvRange = wait(tr.getRange(begin, end, CLIENT_KNOBS->TOO_MANY));
Standalone<RangeResultRef> kvRange = wait(tr.getRange(begin, end, 1000));
if (!kvRange.more && kvRange.size() == 0) {
TraceEvent("SnapTestNoMoreEntries");
break;