[SERVER-38192] Ignore duplicate key error from refreshLogicalSessionCacheNow Created: 16/Nov/18  Updated: 29/Oct/23  Resolved: 03/Dec/18

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.6.11, 4.0.7, 4.1.7

Type: Bug Priority: Major - P3
Reporter: Misha Tyulenev Assignee: Matthew Saltz (Inactive)
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6
Sprint: Sharding 2018-12-17
Participants:
Linked BF Score: 0

 Description   

refreshLogicalSessionCacheNow can run in parallel with logical sessions cache refresh thread and hence call LogicalSessinsCacheImpl::_refresh method concurrently which will result in returning duplicate key error.
As refreshLogicalSessionCacheNow is a part of test its ok to ignore the duplicate key status in some cases to improve test reliability.



 Comments   
Comment by Githook User [ 11/Feb/19 ]

Author:

{'name': 'Matthew Saltz', 'email': 'matthew.saltz@mongodb.com', 'username': 'saltzm'}

Message: SERVER-38192 refreshLogicalSessionCacheNow should not throw on DuplicateKeyError

(cherry picked from commit 67d78e413592a31a95eac8b095d7fa7ffbe94021)
Branch: v4.0
https://github.com/mongodb/mongo/commit/0149a933b46de7210454939e11ea0348449651bb

Comment by Githook User [ 28/Jan/19 ]

Author:

{'username': 'saltzm', 'email': 'matthew.saltz@mongodb.com', 'name': 'Matthew Saltz'}

Message: SERVER-38192 refreshLogicalSessionCacheNow should not throw on DuplicateKeyError

(cherry picked from commit 67d78e413592a31a95eac8b095d7fa7ffbe94021)
Branch: v3.6
https://github.com/mongodb/mongo/commit/36939737eb4ad92193fc5e7f7971293a2c551f73

Comment by Githook User [ 03/Dec/18 ]

Author:

{'name': 'Matthew Saltz', 'email': 'matthew.saltz@mongodb.com', 'username': 'saltzm'}

Message: SERVER-38192 refreshLogicalSessionCacheNow should not throw on DuplicateKeyError
Branch: master
https://github.com/mongodb/mongo/commit/67d78e413592a31a95eac8b095d7fa7ffbe94021

Comment by Matthew Saltz (Inactive) [ 03/Dec/18 ]

CR: https://mongodbcr.appspot.com/220050001/

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