Skip to content

Commit

Permalink
Bump timeout for feature migration in system index migration test (#8…
Browse files Browse the repository at this point in the history
…4828) (#84891)

* Bump timeout on assertBusy loop
  • Loading branch information
williamrandolph committed Mar 10, 2022
1 parent c24f585 commit 83349fd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,14 @@ public void testMigrateInternalManagedSystemIndex() throws Exception {
assertThat(migratingFeatures, hasItem(FEATURE_NAME));

GetFeatureUpgradeStatusRequest getStatusRequest = new GetFeatureUpgradeStatusRequest();
// The feature upgrade may take longer than ten seconds when tests are running
// in parallel, so we give assertBusy a sixty-second timeout.
assertBusy(() -> {
GetFeatureUpgradeStatusResponse statusResponse = client().execute(GetFeatureUpgradeStatusAction.INSTANCE, getStatusRequest)
.get();
logger.info(Strings.toString(statusResponse));
assertThat(statusResponse.getUpgradeStatus(), equalTo(GetFeatureUpgradeStatusResponse.UpgradeStatus.NO_MIGRATION_NEEDED));
});
}, 60, TimeUnit.SECONDS);

// Waiting for shards to stabilize if indices were moved around
ensureGreen();
Expand Down

0 comments on commit 83349fd

Please sign in to comment.