diff options
author | Luke Chen <luke.chen@mongodb.com> | 2020-09-09 11:37:44 +1000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-09 01:52:32 +0000 |
commit | 0f0eb111c9dbd5dd4ca86529aee81bad59c6579b (patch) | |
tree | 94f3efa909755fcc8b381bf68214ebb9bb326964 /src/third_party/wiredtiger/test/csuite/random_abort/main.c | |
parent | 103b545528e7cf05537bd68bda4bc8235bf6fefa (diff) | |
download | mongo-0f0eb111c9dbd5dd4ca86529aee81bad59c6579b.tar.gz |
Import wiredtiger: 6a7db4f96fe828fdb1b9a31d83460c0573a2c3b1 from branch mongodb-4.4
ref: 579966149b..6a7db4f96f
for: 4.4.2
WT-5144 Use wt_clock instead of wt_epoch in perf programs
WT-5585 Remove cache_overflow config option
WT-5693 Enable test_wt4105_large_doc_small_upd
WT-5940 Migrate to Clang Format 10
WT-6000 Enhance incremental backup testing in format to support restart
WT-6006 Revert test binaries to 10 in checkpoint-stress-test
WT-6027 Fix docs spelling errors and warnings
WT-6322 Split full compatibility tests into smaller groups
WT-6390 Extend compact02 timeout from 8 => 10 minutes
WT-6404 Add timing stress that delays checkpoint after it calls __wt_txn_begin
WT-6451 Do not evict clean metadata pages if needed for historic reads
WT-6458 read row-store leaf pages with prepared updates in a single pass
WT-6463 History store operations should honor cache size
WT-6471 Avoid the error message for non-existent clang-format binary
WT-6472 Update timestamp_abort test cache configuration
WT-6478 Cursor cache statistics not getting incremented
WT-6505 Add debugging for missing file failure
WT-6507 Exit cache eviction worker after our operation has timed out
WT-6526 Fix assertion failure when opening DB in readonly mode after unclean shutdown
WT-6532 Consider update structure overhead in split length calculation
WT-6542 Add an assert to ensure we are not unintentionally returning empty values
WT-6544 Onpage value not appended to the tombstone restored from the data or history store
WT-6556 Fix internal sessions to use internal session close function than public API to avoid memory leak
WT-6559 Use the session id from the new session to determine statistics bucket
WT-6560 Fix usage of global salvage in WT utility
WT-6561 Provide MongoDB configuration in the wt utility usage output
WT-6569 Squash the prepared updates into a single update before writing it to data store
WT-6570 RTS to remove the left over updates in the history store without stop timestamp
WT-6571 Lseek cannot use error_sys_check because it does not return an int
WT-6577 History store dump outputs confusing time window
WT-6578 Prevent reconciliation from looking past the on-disk value
WT-6581 Fix class name in test_hs15
WT-6585 Panic if updates that are older than the updates in history store are inserted to history store
WT-6586 Tombstone inserted to history store should also be flagged as WT_UPDATE_HS
WT-6589 Fix disabled cursor cache python tests
WT-6591 Stop checkpoint thread before closing connection in Python tests
WT-6593 Retry conflicting operations in test_rollback_to_stable10
WT-6596 Increase cache for timestamp abort test and separate key spaces for all abort tests
WT-6598 Add new API allowing changing dhandle hash bucket size
WT-6602 Allow operation timeout ms to be passed to commit and rollback
WT-6604 Fix typo in the comment descibing WT_CELL structure
WT-6610 Fix incremental backup checkpoint parsing to handle upgrades
WT-6611 Revert enhancement allowing rename and incremental backup
WT-6613 Add python test for early_load flag
WT-6615 Initialize last_upd where it is actually used
WT-6619 Eliminate possibility of infinite loop in test_cursor13.py
WT-6623 Set the connection level file id in recovery file scan
WT-6625 Remove outdated TODO
WT-6635 Disable mix and column filetype test
WT-6640 Coverity: Failure to restore saved dhandle
WT-6641 Coverity: Unused value
Diffstat (limited to 'src/third_party/wiredtiger/test/csuite/random_abort/main.c')
-rw-r--r-- | src/third_party/wiredtiger/test/csuite/random_abort/main.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/third_party/wiredtiger/test/csuite/random_abort/main.c b/src/third_party/wiredtiger/test/csuite/random_abort/main.c index 52161d089a8..10c12fbc68e 100644 --- a/src/third_party/wiredtiger/test/csuite/random_abort/main.c +++ b/src/third_party/wiredtiger/test/csuite/random_abort/main.c @@ -68,6 +68,12 @@ static bool inmem; #define ENV_CONFIG_REC "log=(recover=on)" /* + * A minimum width of 10, along with zero filling, means that all the keys sort according to their + * integer value, making each thread's key space distinct. + */ +#define KEY_FORMAT ("%010" PRIu64) + +/* * Maximum number of modifications that are allowed to perform cursor modify operation. */ #define MAX_MODIFY_ENTRIES 10 @@ -191,7 +197,7 @@ thread_run(void *arg) if (columnar_table) cursor->set_key(cursor, i); else { - testutil_check(__wt_snprintf(kname, sizeof(kname), "%" PRIu64, i)); + testutil_check(__wt_snprintf(kname, sizeof(kname), KEY_FORMAT, i)); cursor->set_key(cursor, kname); } /* @@ -462,7 +468,7 @@ recover_and_verify(uint32_t nthreads) if (columnar_table) cursor->set_key(cursor, key); else { - testutil_check(__wt_snprintf(kname, sizeof(kname), "%" PRIu64, key)); + testutil_check(__wt_snprintf(kname, sizeof(kname), KEY_FORMAT, key)); cursor->set_key(cursor, kname); } @@ -479,9 +485,7 @@ recover_and_verify(uint32_t nthreads) fatal = true; } else { if (!inmem) - printf( - "%s: deleted record" - " found with key %" PRIu64 "\n", + printf("%s: deleted record found with key %" PRIu64 "\n", fname[DELETE_RECORD_FILE_ID], key); absent++; middle = key; @@ -493,7 +497,7 @@ recover_and_verify(uint32_t nthreads) if (columnar_table) cursor->set_key(cursor, key); else { - testutil_check(__wt_snprintf(kname, sizeof(kname), "%" PRIu64, key)); + testutil_check(__wt_snprintf(kname, sizeof(kname), KEY_FORMAT, key)); cursor->set_key(cursor, kname); } @@ -501,9 +505,7 @@ recover_and_verify(uint32_t nthreads) if (ret != WT_NOTFOUND) testutil_die(ret, "search"); if (!inmem) - printf( - "%s: no insert record" - " with key %" PRIu64 "\n", + printf("%s: no insert record with key %" PRIu64 "\n", fname[INSERT_RECORD_FILE_ID], key); absent++; middle = key; @@ -546,7 +548,7 @@ recover_and_verify(uint32_t nthreads) if (columnar_table) cursor->set_key(cursor, key); else { - testutil_check(__wt_snprintf(kname, sizeof(kname), "%" PRIu64, key)); + testutil_check(__wt_snprintf(kname, sizeof(kname), KEY_FORMAT, key)); cursor->set_key(cursor, kname); } |