DBZ-7870 default value of -1 for connection error retries interpreted as no limit
This commit is contained in:
parent
6c0b268652
commit
5b14097a94
@ -350,6 +350,7 @@ Meng Qiu
|
||||
Melissa Winstanley
|
||||
Michael Cizmar
|
||||
Michael Wang
|
||||
Michal Augustyn
|
||||
Mickael Maison
|
||||
Mickaël Isaert
|
||||
Mike Graham
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user