@@ -107,6 +107,7 @@ public class TarantoolCartridgeContainer extends GenericContainer<TarantoolCartr
107
107
private static final String ENV_TARANTOOL_INSTANCES_FILE = "TARANTOOL_INSTANCES_FILE" ;
108
108
private static final String ENV_TARANTOOL_CLUSTER_COOKIE = "TARANTOOL_CLUSTER_COOKIE" ;
109
109
private static final String healthyCmd = "return require('cartridge').is_healthy()" ;
110
+ private static final int TWO_MINUTES = 120 ;
110
111
111
112
private final CartridgeConfigParser instanceFileParser ;
112
113
private final TarantoolContainerClientHelper clientHelper ;
@@ -549,7 +550,7 @@ private void retryingSetupTopology() {
549
550
if (!setupTopology ()) {
550
551
try {
551
552
logger ().info ("Retrying setup topology in 10 seconds" );
552
- Thread .sleep (1_000 );
553
+ Thread .sleep (10_000 );
553
554
} catch (InterruptedException e ) {
554
555
throw new RuntimeException (e );
555
556
}
@@ -571,12 +572,11 @@ private void bootstrapVshard() {
571
572
@ Override
572
573
protected void containerIsStarted (InspectContainerResponse containerInfo , boolean reused ) {
573
574
super .containerIsStarted (containerInfo , reused );
574
- int secondsToWait = 120 ;
575
575
576
- waitUntilRouterIsUp (secondsToWait );
576
+ waitUntilRouterIsUp (TWO_MINUTES );
577
577
retryingSetupTopology ();
578
578
// wait until Roles are configured
579
- waitUntilCartridgeIsHealthy (secondsToWait );
579
+ waitUntilCartridgeIsHealthy (TWO_MINUTES );
580
580
bootstrapVshard ();
581
581
582
582
logger ().info ("Tarantool Cartridge cluster is started" );
0 commit comments