[SERVER-57069] Tenant migration donor shouldn't check abort token without checking instance token Created: 19/May/21  Updated: 29/Oct/23  Resolved: 19/May/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc1, 5.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Jack Mulrow Assignee: Jack Mulrow
Resolution: Fixed Votes: 0
Labels: pm-1791_non-cloud-blocking, pm-1791_other_required, post-rc0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Sharding 2021-05-31
Participants:

 Description   

When handling an error before a tenant migration has committed, a tenant migration donor assumes if the abort migration token has been cancelled then the migration was aborted. This token inherits from the instance's token which is cancelled on stepdown/shutdown so it will also be cancelled in those cases. To distinguish between failover and user initiated abort, the donor should also check the instance token when checking the abort token.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 01/Jun/21 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-57069 Make tenant migration donor also check instance token when checking abort token

(cherry picked from commit bd3a9d4b52f7f8e3aea8bed7d8e8e919acfa3e3e)
Branch: v5.0
https://github.com/mongodb/mongo/commit/8d899379f9f9526686a01da09bc7e2b2c3c95d76

Comment by Githook User [ 19/May/21 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-57069 Make tenant migration donor also check instance token when checking abort token
Branch: master
https://github.com/mongodb/mongo/commit/bd3a9d4b52f7f8e3aea8bed7d8e8e919acfa3e3e

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