[SERVER-21563] storage_rocks_index_test is broken Created: 19/Nov/15  Updated: 25/Nov/15  Resolved: 20/Nov/15

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 3.2.0-rc3
Fix Version/s: 3.2.0-rc4

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: David Storch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-21403 $snapshot can return duplicates on 3.... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

The SortedDataInterface unit-test is broken for RocksDB, most likely because of this change, which now requires that SortedDataInterface::Cursor implementations for unique indexes never return duplicate keys.

This is the failure (obtained from the most recent evergreen run):

	
[cpp_unit_test:storage_rocks_index_test] 2015-11-18T05:45:04.237+0000 2015-11-18T05:45:04.236+0000 I -        [main] SortedDataInterface            | tests:  146 | fails:    2 | assert calls:          0 | time secs:  2.361
[cpp_unit_test:storage_rocks_index_test] 2015-11-18T05:45:04.237+0000 	SaveAndRestorePositionUniqueIndexWontReturnDupKeys_Forward	Expected cursor->next() == IndexKeyEntry(key2, loc2) ( { : 1 }@RecordId(44) == { : 2 }@RecordId(44)) @src/mongo/db/storage/sorted_data_interface_test_cursor_saverestore.cpp:458
[cpp_unit_test:storage_rocks_index_test] 2015-11-18T05:45:04.237+0000 	SaveAndRestorePositionUniqueIndexWontReturnDupKeys_Reverse	Expected cursor->next() == IndexKeyEntry(key3, loc1) ( { : 4 }@RecordId(42) == { : 3 }@RecordId(42)) @src/mongo/db/storage/sorted_data_interface_test_cursor_saverestore.cpp:537
[cpp_unit_test:storage_rocks_index_test] 2015-11-18T05:45:04.237+0000 2015-11-18T05:45:04.236+0000 I -        [main] TOTALS                         | tests:  151 | fails:    2 | assert calls:          0 | time secs:  2.427



 Comments   
Comment by David Storch [ 20/Nov/15 ]

Should be fixed by https://github.com/mongodb-partners/mongo-rocks/commit/a383c571f18b75c20f461f1a7367fa5e25d32b4d

Generated at Thu Feb 08 03:57:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.