aweisberg commented on code in PR #3842: URL: https://github.com/apache/cassandra/pull/3842#discussion_r1937993680
########## src/java/org/apache/cassandra/service/accord/FetchMinEpoch.java: ########## @@ -145,21 +108,22 @@ public static Future<Long> fetch(SharedContext context, Map<InetAddressAndPort, } @VisibleForTesting - static Future<Long> fetch(SharedContext context, InetAddressAndPort to, Set<TokenRange> value) + static Future<Long> fetch(SharedContext context, InetAddressAndPort to) { - FetchMinEpoch req = new FetchMinEpoch(value); - return context.messaging().<FetchMinEpoch, FetchMinEpoch.Response>sendWithRetries(Backoff.NO_OP.INSTANCE, - MessageDelivery.ImmediateRetryScheduler.instance, - Verb.ACCORD_FETCH_MIN_EPOCH_REQ, req, + Backoff backoff = Backoff.fromConfig(context, DatabaseDescriptor.getAccord().minEpochSyncRetry); + return context.messaging().<FetchMinEpoch, FetchMinEpoch.Response>sendWithRetries(backoff, + context.optionalTasks()::schedule, + Verb.ACCORD_FETCH_MIN_EPOCH_REQ, + FetchMinEpoch.instance, Iterators.cycle(to), - RetryPredicate.times(DatabaseDescriptor.getAccord().minEpochSyncRetry.maxAttempts.value), + RetryPredicate.ALWAYS_RETRY, Review Comment: I think that's not faithful to what was here, because it had a maximum number of attempts before so eventually it would complete? Now it retries forever so it will never stop? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For additional commands, e-mail: pr-h...@cassandra.apache.org