[SERVER-50293] TemporaryKVRecordStore should reset the _recordStoreHasBeenFinalized flags state on a WriteConflictException Created: 13/Aug/20  Updated: 29/Oct/23  Resolved: 13/Aug/20

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

Type: Bug Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-57231 [ephemeralForTest] index build cleanu... Closed
related to SERVER-58357 [ephemeralForTest] TemporaryKVRecordS... Closed
related to SERVER-50956 Test resuming larger index builds tha... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2020-08-24
Participants:
Linked BF Score: 129

 Description   

It's possible for TemporaryKVRecordStore::finalizeTemporaryTable() to throw a WriteConflictException and for the MultiIndexBlock to retry. However, because the _recordStoreHasBeenFinalized flag does not get reset, a second attempt to calling TemporaryKVRecordStore::finalizeTemporaryTable() will invariant.



 Comments   
Comment by Githook User [ 13/Aug/20 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-50293 TemporaryKVRecordStore should reset the _recordStoreHasBeenFinalized flags state on a WriteConflictException
Branch: master
https://github.com/mongodb/mongo/commit/d7c813aa3dc0d67f4426683efc37f0de2bde142d

Comment by Githook User [ 13/Aug/20 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-50293 Fix validate_tests to call finalizeTemporaryTables() in a WriteUnitOfWork
Branch: master
https://github.com/mongodb/mongo/commit/08ac5dd2a296b510011299c39cb446dd47798d7f

Generated at Thu Feb 08 05:22:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.