[SERVER-59114] ReshardingOplogFetcher stops fetching new oplog entries if remote donor shard responds with Interruption exception Created: 04/Aug/21  Updated: 29/Oct/23  Resolved: 05/Aug/21

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

Type: Bug Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Fixed Votes: 0
Labels: PM-234-M3, PM-234-T-oplog-fetch
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-53351 Add resharding fuzzer task with step-... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Sharding 2021-08-09
Participants:
Story Points: 1

 Description   

A remote donor shard may return an InterruptedDueToReplStateChange error response as a result of stepping down or transitioning into rollback. The ReshardingOplogFetcher thread will (incorrectly) stops rescheduling itself when this happens.

try {
    return consume(client, factory, targetShard.get());
} catch (const ExceptionForCat<ErrorCategory::Interruption>&) {
    return false;
} ...

The ReshardingOplogFetcher thread should instead swallow the Interruption exception and consult the cancellation token for whether or not it should reschedule itself.



 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 [ 05/Aug/21 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-59114 Retry in ReshardingOplogFetcher on Interruption errors.

(cherry picked from commit 5d049a273ab2e3fe4b33a2f473ed9b31b90821ff)
Branch: v5.0
https://github.com/mongodb/mongo/commit/d0cd261b7708d670522a88ee9465c00bdc7521bc

Comment by Githook User [ 05/Aug/21 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-59114 Retry in ReshardingOplogFetcher on Interruption errors.
Branch: master
https://github.com/mongodb/mongo/commit/5d049a273ab2e3fe4b33a2f473ed9b31b90821ff

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