[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: |
|
||||||||
| 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: |
| Comment by Githook User [ 10/Feb/22 ] |
|
Author: {'name': 'Sanika Phanse', 'email': 'sanika.phanse@mongodb.com', 'username': 'sphanse99'}Message: (cherry picked from commit a62d27313db5da6ed0b39c23ee3d8841fe434ebe) |
| 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: |