if (firstTime) {
log.debug("fetch secrets first time with attempts = " + vaultRuntimeConfig.mpConfigInitialAttempts());
fetchSecretsFirstTime(properties);
firstTime = false;
If there is a failure, firstTime is still true, and next attempt will be done as if this was the first time.
As a result, the application repeats multiple times, several load attempts, delaying the eventual failure of application startup.
This is related to this:
If there is a failure,
firstTime
is still true, and next attempt will be done as if this was the first time. As a result, the application repeats multiple times, several load attempts, delaying the eventual failure of application startup.