From d173689149305c83f6c5e45878e54698694f4106 Mon Sep 17 00:00:00 2001 From: Matthew Russotto Date: Tue, 15 Mar 2022 10:02:18 -0400 Subject: SERVER-63417 Oplog fetcher should not retry when a node is known to be down --- src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp') diff --git a/src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp b/src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp index f26f2a1dd0a..abb8f3bebd8 100644 --- a/src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp +++ b/src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp @@ -45,7 +45,7 @@ ChangeSyncSourceAction DataReplicatorExternalStateInitialSync::shouldStopFetchin const rpc::ReplSetMetadata&, const rpc::OplogQueryMetadata&, const OpTime& previousOpTimeFetched, - const OpTime& lastOpTimeFetched) { + const OpTime& lastOpTimeFetched) const { // Since initial sync does not allow for sync source changes, it should not check if there are // better sync sources. If there is a problem on the sync source, it will manifest itself in the @@ -54,5 +54,11 @@ ChangeSyncSourceAction DataReplicatorExternalStateInitialSync::shouldStopFetchin return ChangeSyncSourceAction::kContinueSyncing; } +ChangeSyncSourceAction DataReplicatorExternalStateInitialSync::shouldStopFetchingOnError( + const HostAndPort&, const OpTime& lastOpTimeFetched) const { + + return ChangeSyncSourceAction::kContinueSyncing; +} + } // namespace repl } // namespace mongo -- cgit v1.2.1