[SERVER-34745] Enhance SDI::cursor API seekExact's unittest for new format unique indexes Created: 30/Apr/18  Updated: 29/Oct/23  Resolved: 06/Aug/18

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

Type: Bug Priority: Major - P3
Reporter: Neha Khatri Assignee: Sulabh Mahajan
Resolution: Fixed Votes: 0
Labels: nonnyc, storage-engines
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-34489 Enable new format Unique Index via FCV Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Storage Engines 2018-07-30, Storage Engines 2018-08-13
Participants:

 Description   

Unit tests of seekExact API failed for timestamp safe unique(new format) index. The tests try to search old format index key in the new format unique index, which fails.

Enhance unittest for new format index. Also add test to search entries in mixed format unique index.

Investigate code to determine whether the API should be enhanced for new format unique index. 



 Comments   
Comment by Githook User [ 05/Aug/18 ]

Author:

{'username': 'sulabhM', 'name': 'Sulabh Mahajan', 'email': 'sulabh.mahajan@mongodb.com'}

Message: SERVER-34745 Simplify seekExact() and fix restore() for unique indexes
Branch: master
https://github.com/mongodb/mongo/commit/4c4efa4fbb26b87a95cd9e2c8161034ad5221fe4

Comment by Alexander Gorrod [ 07/May/18 ]

Guess is 2 days work to get this done.

Comment by Alexander Gorrod [ 07/May/18 ]

We moved this from a 4.0 blocker because the test failure only happens when enabling functionality that is protected by a gating variable.

Comment by Neha Khatri [ 30/Apr/18 ]

Log snippet from failed test:

[cpp_unit_test:storage_wiredtiger_index_test] 2018-04-27T07:38:19.876+0000 2018-04-27T07:38:19.871+0000 I -        [main] Created temporary directory: /data/mci/f41b40804e14e155a4fc7ee6a7dfef24/tmp/wt_test-6f2a-5381-8e4e-708e
[cpp_unit_test:storage_wiredtiger_index_test] 2018-04-27T07:38:20.080+0000 2018-04-27T07:38:20.080+0000 E -        [main] Throwing exception: Expected cursor->seekExact(key3) == maybeKey3 (-- ==  { : 3 }@RecordId(42)) @src/mongo/db/storage/sorted_data_interface_test_cursor_end_position.cpp:141
[cpp_unit_test:storage_wiredtiger_index_test] 2018-04-27T07:38:20.144+0000 2018-04-27T07:38:20.139+0000 I -        [main] FAIL: SetEndPosition_Seek_Forward_Unique_Inclusive	Expected cursor->seekExact(key3) == maybeKey3 (-- ==  { : 3 }@RecordId(42)) @src/mongo/db/storage/sorted_data_interface_test_cursor_end_position.cpp:141 in test SetEndPosition_Seek_Forward_Unique_Inclusive

Generated at Thu Feb 08 04:37:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.