File tree 2 files changed +10
-7
lines changed
src/main/java/org/testcontainers/containers 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 4
4
5
5
## [ 1.1.1] - 2023-12-13
6
6
7
- - Fixed default use of ` TARANTOOL_CLUSTER_COOKIE ` . Now if ` TARANTOOL_CLUSTER_COOKIE ` is installed via
8
- environment variable or written in the ` init.lua ` file, then you need to specify value of ` TARANTOOL_CLUSTER_COOKIE `
9
- in the ` .withRouterPassword() ` method. If ` TARANTOOL_CLUSTER_COOKIE ` is not specified, the default value (` secret-cluster-cookie ` )
10
- will be used and no additional actions are required ([ #55 ] ( https://github.com/tarantool/testcontainers-java-tarantool/issues/55 ) )
7
+ - Remove the default value for ` TARANTOOL_CLUSTER_COOKIE ` env variable in cartridge container.
8
+ Now it works like in cartridge in order of decreasing priority as directed by the user:
9
+ ` TARANTOOL_CLUSTER_COOKIE > cartridge.cfg > default_cookie `
10
+ You can set TARANTOOL_CLUSTER_COOKIE by build-arg on image building or by env arg before container starting
11
+ ([ #55 ] ( https://github.com/tarantool/testcontainers-java-tarantool/issues/55 ) )
12
+ - ** [ Breaking change] ** Default routerPassword has been changed from ` testapp-cluster-cookie ` to ` secret-cluster-cookie `
13
+ ([ #55 ] ( https://github.com/tarantool/testcontainers-java-tarantool/issues/55 ) )
11
14
- Change private to protected in TarantoolCartridgeContainer
12
15
- Add support for the ` TARANTOOL_VERSION ` environment variable to specify the version in the image name
13
16
`tarantool/tarantool:<TARANTOOL_VERSION>-centos7 when calling the constructor without arguments
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ public class TarantoolCartridgeContainer extends GenericContainer<TarantoolCartr
107
107
public static final String ENV_TARANTOOL_INSTANCES_FILE = "TARANTOOL_INSTANCES_FILE" ;
108
108
public static final String ENV_TARANTOOL_CLUSTER_COOKIE = "TARANTOOL_CLUSTER_COOKIE" ;
109
109
protected static final String healthyCmd = "return require('cartridge').is_healthy()" ;
110
- protected static final int TWO_MINUTES = 60 ;
110
+ protected static final int TIMEOUT_ROUTER_UP_CARTRIDGE_HEALTH_IN_SECONDS = 60 ;
111
111
112
112
protected final CartridgeConfigParser instanceFileParser ;
113
113
protected final TarantoolContainerClientHelper clientHelper ;
@@ -573,10 +573,10 @@ protected void bootstrapVshard() {
573
573
protected void containerIsStarted (InspectContainerResponse containerInfo , boolean reused ) {
574
574
super .containerIsStarted (containerInfo , reused );
575
575
576
- waitUntilRouterIsUp (TWO_MINUTES );
576
+ waitUntilRouterIsUp (TIMEOUT_ROUTER_UP_CARTRIDGE_HEALTH_IN_SECONDS );
577
577
retryingSetupTopology ();
578
578
// wait until Roles are configured
579
- waitUntilCartridgeIsHealthy (TWO_MINUTES );
579
+ waitUntilCartridgeIsHealthy (TIMEOUT_ROUTER_UP_CARTRIDGE_HEALTH_IN_SECONDS );
580
580
bootstrapVshard ();
581
581
582
582
logger ().info ("Tarantool Cartridge cluster is started" );
You can’t perform that action at this time.
0 commit comments