[SERVER-57662] Wait for config.system.sessions collection to exist on the config server before refreshing logical session cache Created: 11/Jun/21  Updated: 29/Oct/23  Resolved: 27/Oct/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0, 4.4.13, 5.0.7

Type: Bug Priority: Major - P3
Reporter: Jason Zhang Assignee: Sanika Phanse (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:
v5.1, v5.0, v4.4
Sprint: Sharding 2021-11-01
Participants:
Linked BF Score: 21

 Description   

In verify_sessions_expiration_sharded.js, we refresh the logical session cache on mongos before guaranteeing that every config server node has replicated the chunk metadata associated with the sessions collection. We should either wait for the config server nodes to fully replicate the data or keep looping the mongos refresh until it is able to detect the sessions collection on the config server. 

Edit: Another(better) solution would be to move the cache refresh when starting up a ShardingTest above this line to guarantee that each of the config server nodes has refreshed their cache.



 Comments   
Comment by Githook User [ 14/Feb/22 ]

Author:

{'name': 'Sanika Phanse', 'email': 'sanika.phanse@mongodb.com', 'username': 'sphanse99'}

Message: SERVER-57662 Wait for config.system.sessions collection to exist on the config server before refreshing logical session cache
Branch: v4.4
https://github.com/mongodb/mongo/commit/fe1bea5e919bd5cf1d65568704f2087267706938

Comment by Githook User [ 10/Feb/22 ]

Author:

{'name': 'Sanika Phanse', 'email': 'sanika.phanse@mongodb.com', 'username': 'sphanse99'}

Message: SERVER-57662 Wait for config.system.sessions collection to exist on the config server before refreshing logical session cache

(cherry picked from commit a62d27313db5da6ed0b39c23ee3d8841fe434ebe)
Branch: v5.0
https://github.com/mongodb/mongo/commit/36fb9989cc51747aa11ad357b089c36da1272949

Comment by Jason Zhang [ 13/Dec/21 ]

Seems like the BF occurred on v4.4 as well, I assume v5.1 and v5.0 could benefit as well. Im not too sure if v4.2 and v4.0 also need this backported

Comment by Githook User [ 26/Oct/21 ]

Author:

{'name': 'Sanika Phanse', 'email': 'sanika.phanse@mongodb.com', 'username': 'sphanse99'}

Message: SERVER-57662 Wait for config.system.sessions collection to exist on the config server before refreshing logical session cache
Branch: master
https://github.com/mongodb/mongo/commit/dc650e2689f73aa422f552e2c41afed7aceb5a29

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