[SERVER-57743] setFCV 4.4 can take at least orphanCleanupDelaySecs if it starts while there is an in-progress migration for config.system.sessions Created: 16/Jun/21  Updated: 24/Sep/21  Resolved: 24/Sep/21

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

Type: Bug Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Jonathan Lee
Resolution: Done Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-45249 Make recipient wait for orphan cleanu... Closed
Operating System: ALL
Sprint: Sharding 2021-09-20, Sharding 2021-10-04
Participants:

 Description   

SERVER-45047 made the setFCV command block chunk migrations by locking the ActiveMigrationsRegistry. This forces the setFCV command to wait for any ongoing migrations to complete. SERVER-45624 made the balancer automatically split the config.system.sessions collection so when the setFCV command is run after the balancer is re-enabled, there is the chance that the setFCV command is blocked behind a migration for the sessions collection. Since the range deleter waits for orphanCleanupDelaySecs before checking if the collection exists and doing the deletion, the range deleter is forced to wait orphanCleanupDelaySecs (defaults to 15 minutes) before failing with RangeDeletionAbandonedBecauseCollectionWithUUIDDoesNotExist which is then ignored. To solve this, we should check if the collection exists before submitting a range deletion task here when we call _notePending().



 Comments   
Comment by Githook User [ 24/Sep/21 ]

Author:

{'name': 'Jonathan Lee', 'email': 'jonathan.lee@mongodb.com', 'username': 'jonatlee'}

Message: SERVER-57743 Prevent range deletion task from being executed if sessions collection is empty
Branch: v4.4
https://github.com/mongodb/mongo/commit/7899940b1aa69d3e674d865a1e15d7da293bc087

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