[SERVER-53276] After tenant migration, recipient side RSM to donor is not garbage collected Created: 08/Dec/20  Updated: 29/Oct/23  Resolved: 02/Feb/21

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

Type: Bug Priority: Major - P3
Reporter: Andrew Shuvalov (Inactive) Assignee: Xuerui Fa
Resolution: Fixed Votes: 0
Labels: pm-1791_milestone-B
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-50467 Ensure that tenant migration donor on... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

How to reproduce: the error is marked as TODO in the commented lines in the test `jstests/replsets/tenant_migration_concurrent_migrations.js` that I am about to submit. 

Sprint: Repl 2021-02-08
Participants:
Linked BF Score: 17

 Description   

When tenant migration is terminated by `forgetMigration` command, the RSM from recipient back to donor is not discarded.

This issue was created by some change between Nov 20 and Dec 8, because the failure did not exist in the dev branch for my change for SERVER-50467.

 



 Comments   
Comment by Githook User [ 02/Feb/21 ]

Author:

{'name': 'XueruiFa', 'email': 'xuerui.fa@mongodb.com', 'username': 'XueruiFa'}

Message: SERVER-53276: Clean up references to donor RSM after migration completes
Branch: master
https://github.com/mongodb/mongo/commit/9d0edae864d6ec9bde0a99a68b66ce9f09808f8b

Comment by Githook User [ 08/Dec/20 ]

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-50467: Added TODO SERVER-53276 to fix recipient side tenant migration RSM lifetime bug
Branch: master
https://github.com/mongodb/mongo/commit/987484b4aa34deea1db7d70228989b83448a24e8

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