imdg connect log fix

This commit is contained in:
ialbert 2022-10-21 12:26:20 +03:00
parent 5d08d3e438
commit 19d013c096

View file

@ -104,14 +104,14 @@ public final class HazelcastHelper {
try {
while (!getIdmgState(hazelcast)) {
if (sleepCount++ % 30 == 0)
log.info("Wait till STORAGE be ready...");
log.info("Wait till IMDG be ready...");
Thread.sleep(100);
}
log.info("STORAGE connected!");
log.info("IMDG connected!");
} catch (HazelcastException hcEx) {
// проброс InterruptException из Hazelcast
if (hcEx instanceof HazelcastException && hcEx.getCause() instanceof InterruptedException)
throw new InterruptedException("Can not obtain storage for check state, cause has interrupted. " + hcEx);
throw new InterruptedException("Can not obtain IMDG for check state, cause has interrupted. " + hcEx);
throw hcEx;
}
}