[SERVER-64498] Check for both cache-full and rollback when the application uses cache_max_wait_ms Created: 14/Mar/22  Updated: 29/Oct/23  Resolved: 23/Mar/22

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

Type: New Feature Priority: Major - P3
Reporter: Sulabh Mahajan Assignee: Yujin Kang Park
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by WT-8767 Return rollback instead of cache full... Closed
Related
related to SERVER-64461 Replace WT_CACHE_FULL error with WT_R... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-04-04
Participants:

 Description   

WT-8767 is going to make a change where the application threads set to timeout after a duration of waiting on eviction will return a WT_ROLLBACK instead of WT_CACHE_FULL. In WiredTigerRecordStore::_initNextIdIfNeeded when trying to determine the largest record id we check the return of WT_CACHE_FULL. This will break once WT-8767 will be merged to MongoDB.

To help with the transition from cache full error to the rollback, this ticket should make the above code check for both WT_CACHE_FULL and WT_ROLLBACK.

A follow on ticket, SERVER-64461, is filed to take on from there, and do other changes needed to handle the WT_ROLLBACK return with a new rollback reason.



 Comments   
Comment by Githook User [ 23/Mar/22 ]

Author:

{'name': 'Yu Jin Kang Park', 'email': 'yujin.kang@mongodb.com', 'username': 'ykangpark'}

Message: SERVER-64498: Add WT_ROLLBACK check in addition to WT_CACHE_FULL
Branch: master
https://github.com/mongodb/mongo/commit/8c30569f58cbed7a0c48300b311a8d44539a05b4

Comment by Sulabh Mahajan [ 16/Mar/22 ]

Sulabh Mahajan, to understand the priority, this is not required for 6.0, correct?

Yes, this is not required for 6.0

Comment by Sulabh Mahajan [ 14/Mar/22 ]

cc. louis.williams

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