[SERVER-55358] Tenant migration recipient can receive empty batch from sync source Created: 19/Mar/21  Updated: 29/Oct/23  Resolved: 13/May/21

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

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

Issue Links:
Backports
Depends
is depended on by SERVER-52713 [testing] Add stepdown/kill/terminate... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.9
Sprint: Repl 2021-04-19, Repl 2021-05-03, Repl 2021-05-17
Participants:

 Description   

Based on the EVG patch builds forĀ SERVER-52713, the TenantOplogApplierĀ can receive empty batch when there is donor failover.

buildscripts.resmokelib.errors.ServerFailure: Tenant migration with donor replica set 'rs0' aborted due to an error: {'state': 'aborted', 'abortReason': {'code': 120, 'codeName': 'OplogStartMissing', 'errmsg': 'Tenant migration recipient command failed :: caused by :: Received an empty batch from sync source.'}, 'ok': 1.0, '$clusterTime': {'clusterTime': Timestamp(1616120877, 3), 'signature': {'hash': b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 'keyId': 0}}, 'operationTime': Timestamp(1616120877, 1)}



 Comments   
Comment by Githook User [ 19/May/21 ]

Author:

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

Message: SERVER-55358: Check sync source too stale before starting oplog fetcher in tenant migrations

(cherry picked from commit 74b66af2fa46b8382d193d7edf89a542d984d152)
Branch: v4.9
https://github.com/mongodb/mongo/commit/7d36fa315fb5476f1b5d8efba9deedf8c78768c7

Comment by Githook User [ 13/May/21 ]

Author:

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

Message: SERVER-55358: Check sync source too stale before starting oplog fetcher in tenant migrations
Branch: master
https://github.com/mongodb/mongo/commit/74b66af2fa46b8382d193d7edf89a542d984d152

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