[SERVER-64661] Stopping the recipient nodes in BasicServerlessTest should also skip the validation Created: 18/Mar/22  Updated: 29/Oct/23  Resolved: 28/Mar/22

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

Type: Bug Priority: Major - P3
Reporter: Mathis Bessa Assignee: Mathis Bessa
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Server Serverless 2022-04-04
Participants:
Linked BF Score: 142

 Description   

We recently added a logic when stopping the BasicServerlessTest to stop and remove the recipient nodes prior to stopping the donor replica set. 
The validation is however not skipped only for the recipient which causes a potential race condition where the tenant access blockers are not removed and rejects the validation of the collections prior to stopping the recipient node.

The issue appears because we fail to remove tenant access blockers prior to stopping the replSet which leads to the re routing issues as the tenant access blockers are rejecting reads and writes.
This can be fixed by waiting for garbage collection to happen on both the donors and the recipients. 
When doing the garbage collection on the recipient side there was an issue related to the synch source missing as the recipient would get their state document replicated from their old primary as a new primary wasn't elected yet for the recipients.



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

Author:

{'name': 'mathisbessamdb', 'email': 'mathis.bessa@mongodb.com', 'username': 'mathisbessamdb'}

Message: SERVER-64661 Fix validation on shutdown failing due to a re routing issue.
Branch: master
https://github.com/mongodb/mongo/commit/26838030f0aedd4437effcb0418e5c4d6c53f538

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