[SERVER-66917] InsertAndSeekKeyString unit test should use makeKeyStringForSeek Created: 01/Jun/22  Updated: 14/Jul/22  Resolved: 14/Jul/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Josef Ahmad Assignee: Sulabh Mahajan
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-66920 Crash in debug builds due to WiredTig... Closed
Related
is related to WT-9323 Fix a race tracking whether a tree ha... Closed
Operating System: ALL
Steps To Reproduce:

Apply the following patch (this comment from a ticket where the issue was first observed)

--- a/src/third_party/wiredtiger/src/btree/bt_delete.c
+++ b/src/third_party/wiredtiger/src/btree/bt_delete.c
@@ -318,6 +318,9 @@ __wt_delete_page_instantiate(WT_SESSION_IMPL *session, WT_REF *ref)
     if (btree->modified)
         __wt_page_modify_set(session, page);
 
+    /* Hack to get these fast deleted pages scheduled for eviction regularly */
+    __wt_page_evict_soon(session, ref);
+
     /* Allocate the per-page update array if one doesn't already exist. */
     if (page->entries != 0 && page->modify->mod_row_update == NULL)
         WT_PAGE_ALLOC_AND_SWAP(

Run the unit test:

ninja +storage_wiredtiger_record_store_and_index_test

Sprint: Execution Team 2022-06-27, Execution Team 2022-07-11, Execution Team 2022-07-25
Participants:

 Description   

..instead of makeKeyString. makeKeyStringForSeek includes the required discriminator. The lack of discriminator has been a source of failures in case of (by-design) variations in the order of entries returned by the WiredTiger cursor search_near API.


Generated at Thu Feb 08 06:06:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.