refactor: failure in schema cache load should not set listener delay
Listener has its own backoff logic independent of schema cache loading. It also uses listener delay value to identify its retries and to trigger schema cache reloads upon failures. If schema cache reloading sets listener delay it might lead to some unexpected reloading loops. That's especially important in set ups where listener connection points to master and the pool to replica(s).
This commit is contained in:
committed by
Steve Chavez
parent
5992430e9f
commit
78f231c87a
@@ -364,7 +364,6 @@ retryingSchemaCacheLoad appState@AppState{stateObserver=observer, stateMainThrea
|
||||
when (rsIterNumber > 0) $ do
|
||||
let delay = fromMaybe 0 rsPreviousDelay `div` oneSecondInUs
|
||||
observer $ ConnectionRetryObs delay
|
||||
putNextListenerDelay appState delay
|
||||
|
||||
flushPool appState
|
||||
|
||||
|
||||
Reference in New Issue
Block a user