Skip to content

Commit

Permalink
Extend license timeout in CcrIntegTestCase (#83247)
Browse files Browse the repository at this point in the history
The default of 10s is too short for some slower CI workers to apply the
license on all nodes, given how many other things happen while the
cluster is forming. This commit extends the timeout to a more generous
60s.
  • Loading branch information
DaveCTurner committed Jan 31, 2022
1 parent 2f5753f commit 22ff311
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public final void startClusters() throws Exception {
assertBusy(() -> {
ClusterService clusterService = leaderCluster.getInstance(ClusterService.class);
assertNotNull(clusterService.state().metadata().custom(LicensesMetadata.TYPE));
});
}, 60, TimeUnit.SECONDS);

String address = leaderCluster.getDataNodeInstance(TransportService.class).boundAddress().publishAddress().toString();
InternalTestCluster followerCluster = new InternalTestCluster(
Expand All @@ -211,7 +211,7 @@ public final void startClusters() throws Exception {
assertBusy(() -> {
ClusterService clusterService = followerCluster.getInstance(ClusterService.class);
assertNotNull(clusterService.state().metadata().custom(LicensesMetadata.TYPE));
});
}, 60, TimeUnit.SECONDS);
setupMasterNodeRequestsValidatorOnFollowerCluster();
}

Expand Down

0 comments on commit 22ff311

Please sign in to comment.