DBZ-7870 default value of -1 for connection error retries interpreted as no limit

This commit is contained in:
Michal Augustýn 2024-05-13 22:39:11 +02:00 committed by Jiri Pechanec
parent 6c0b268652
commit 5b14097a94
2 changed files with 2 additions and 1 deletions

View File

@ -350,6 +350,7 @@ Meng Qiu
Melissa Winstanley
Michael Cizmar
Michael Wang
Michal Augustyn
Mickael Maison
Mickaël Isaert
Mike Graham

View File

@ -672,7 +672,7 @@ private Throwable handleRetries(final RetriableException e, final List<Map<Strin
startedSuccessfully = true;
}
catch (Exception ex) {
if (totalRetries >= maxRetries) {
if (maxRetries != EmbeddedEngineConfig.DEFAULT_ERROR_MAX_RETRIES && totalRetries >= maxRetries) {
LOGGER.error("Can't start the connector, max retries to connect exceeded; stopping connector...", ex);
return ex;
}