[SERVER-58142] TenantOplogBatcher should transition to complete when the next batch callback is called with error status Created: 29/Jun/21  Updated: 29/Oct/23  Resolved: 29/Jun/21

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

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

Issue Links:
Backports
Depends
Related
related to SERVER-54509 TenantOplogBatcher should transition ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Repl 2021-07-12
Participants:
Linked BF Score: 132

 Description   

_batchRequested is not reset to false if the scheduled callback is called with a non-OK status. I think the convention of the TenantOplogBatcher is that we should reset _batchRequested to false and check for shutdown when it becomes false. This is a problem similar to SERVER-54509 but when the callback is called with an error status. This would result in server hang on stepDown when a tenant migration recipient primary is trying to join the TenantOplogApplier.



 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 [ 14/Jul/21 ]

Author:

{'name': 'Lingzhi Deng', 'email': 'lingzhi.deng@mongodb.com', 'username': 'ldennis'}

Message: SERVER-58142: TenantOplogBatcher should transition to complete when the next batch callback is called with error status

(cherry picked from commit 683e75145e2599b7f559c944635a886d058f3bcf)
Branch: v5.0
https://github.com/mongodb/mongo/commit/3e8b8bbf8fd4243d9b7e81fbb569d492da05628a

Comment by Githook User [ 29/Jun/21 ]

Author:

{'name': 'Lingzhi Deng', 'email': 'lingzhi.deng@mongodb.com', 'username': 'ldennis'}

Message: SERVER-58142: TenantOplogBatcher should transition to complete when the next batch callback is called with error status
Branch: master
https://github.com/mongodb/mongo/commit/683e75145e2599b7f559c944635a886d058f3bcf

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