imdg connect log fix
This commit is contained in:
parent
5d08d3e438
commit
19d013c096
1 changed files with 3 additions and 3 deletions
|
|
@ -104,14 +104,14 @@ public final class HazelcastHelper {
|
||||||
try {
|
try {
|
||||||
while (!getIdmgState(hazelcast)) {
|
while (!getIdmgState(hazelcast)) {
|
||||||
if (sleepCount++ % 30 == 0)
|
if (sleepCount++ % 30 == 0)
|
||||||
log.info("Wait till STORAGE be ready...");
|
log.info("Wait till IMDG be ready...");
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
log.info("STORAGE connected!");
|
log.info("IMDG connected!");
|
||||||
} catch (HazelcastException hcEx) {
|
} catch (HazelcastException hcEx) {
|
||||||
// проброс InterruptException из Hazelcast
|
// проброс InterruptException из Hazelcast
|
||||||
if (hcEx instanceof HazelcastException && hcEx.getCause() instanceof InterruptedException)
|
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;
|
throw hcEx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue