Skip to content

Commit 90ed1d4

Browse files
fabriziofortinoDaniel Iancu
authored andcommitted
OAK-11597: increase toxiproxy startup attempts (apache#2175)
1 parent ac0f242 commit 90ed1d4

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/pipelined/PipelinedMongoConnectionFailureIT.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ public static Collection<Object[]> parameters() {
9898
.withNetworkAliases("mongo")
9999
.withExposedPorts(MONGODB_DEFAULT_PORT);
100100
@Rule
101-
public final ToxiproxyContainer toxiproxy = new ToxiproxyContainer(TOXIPROXY_IMAGE).withNetwork(network);
101+
public final ToxiproxyContainer toxiproxy = new ToxiproxyContainer(TOXIPROXY_IMAGE)
102+
.withStartupAttempts(3)
103+
.withNetwork(network);
102104
@Rule
103105
public final DocumentMKBuilderProvider builderProvider = new DocumentMKBuilderProvider();
104106
@Rule

oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/ElasticReliabilityTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ public class ElasticReliabilityTest extends ElasticAbstractQueryTest {
5757

5858
@Override
5959
public void before() throws Exception {
60-
toxiproxy = new ToxiproxyContainer(TOXIPROXY_IMAGE).withNetwork(elasticRule.elastic.getNetwork());
60+
toxiproxy = new ToxiproxyContainer(TOXIPROXY_IMAGE)
61+
.withStartupAttempts(3)
62+
.withNetwork(elasticRule.elastic.getNetwork());
6163
toxiproxy.start();
6264
ToxiproxyClient toxiproxyClient = new ToxiproxyClient(toxiproxy.getHost(), toxiproxy.getControlPort());
6365
proxy = toxiproxyClient.createProxy("elastic", "0.0.0.0:8666", "elasticsearch:9200");

oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/mongo/LeaseUpdateSocketTimeoutIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public class LeaseUpdateSocketTimeoutIT {
7070

7171
@Rule
7272
public ToxiproxyContainer tp = new ToxiproxyContainer(TOXIPROXY_IMAGE)
73+
.withStartupAttempts(3)
7374
.withNetwork(network);
7475

7576
private Proxy proxy;

0 commit comments

Comments
 (0)