Compare commits

...

1 Commits

Author SHA1 Message Date
Jie Chen
74eff888ed Add debug numbers to make problem reproducer faster 2023-08-04 03:56:14 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ DocumentSource::GetNextResult DocumentSourceSampleFromRandomCursor::doGetNext()
DocumentSource::GetNextResult DocumentSourceSampleFromRandomCursor::getNextNonDuplicateDocument() {
// We may get duplicate documents back from the random cursor, and should not return duplicate
// documents, so keep trying until we get a new one.
const int kMaxAttempts = 100;
const int kMaxAttempts = 50;
for (int i = 0; i < kMaxAttempts; ++i) {
auto nextInput = pSource->getNext();
switch (nextInput.getStatus()) {

View File

@ -253,7 +253,7 @@ __random_leaf_disk(WT_CURSOR_BTREE *cbt, bool *validp)
}
/* Magic constant: cursor up to 250 next/previous records before selecting a key. */
#define WT_RANDOM_CURSOR_MOVE 250
#define WT_RANDOM_CURSOR_MOVE 50
/* Magic constant: 1000 disk-based entries in a page is enough to always select from them. */
#define WT_RANDOM_DISK_ENOUGH WT_THOUSAND