Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ReplicationThrottleHelper.waitForConfigs to use a more reasonable retry loop #2148

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
Expand Down Expand Up @@ -374,7 +375,7 @@ void waitForConfigs(ConfigResource cf, Collection<AlterConfigOp> ops) {
} catch (ExecutionException | InterruptedException | TimeoutException e) {
return false;
}
}, _retries);
}, Duration.ofMillis(5).toMillis(), 2, _retries);
if (!retryResponse) {
throw new IllegalStateException("The following configs " + ops + " were not applied to " + cf + " within the time limit");
}
Expand Down