jacek-lewandowski commented on code in PR #2972:
URL: https://github.com/apache/cassandra/pull/2972#discussion_r1421284803
##########
src/java/org/apache/cassandra/schema/MigrationCoordinator.java:
##########
@@ -548,8 +551,16 @@ private Future<Void> scheduleSchemaPull(InetAddressAndPort
endpoint, VersionInfo
if (shouldPullImmediately(endpoint, info.version))
{
- logger.debug("Pulling {} immediately from {}", info, endpoint);
- submitToMigrationIfNotShutdown(task);
+ if (lastPullFailures.contains(endpoint))
+ {
+ logger.debug("Pulling {} immediately from {} with backoff
interval = {}", info, endpoint, PULL_BACKOFF_INTERVAL_MS);
+ ScheduledExecutors.nonPeriodicTasks.schedule(() ->
submitToMigrationIfNotShutdown(task), PULL_BACKOFF_INTERVAL_MS,
TimeUnit.MILLISECONDS);
Review Comment:
It is not documented - it is a property just to make tests able to modify -
I can add "test" infix to the property name
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]