Skip to content

Commit

Permalink
HDDS-11927 Fix possible flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
juncevich committed Dec 14, 2024
1 parent 2c00c34 commit 470d49a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ void testGetCurrentStatisticsRequestInPeriodBetweenIterations() throws Exception
config.setMaxSizeToMovePerIteration(50 * OzoneConsts.GB);

ContainerBalancerTask task = mockedScm.startBalancerTaskAsync(config, false);
LambdaTestUtils.await(1000, 500,
LambdaTestUtils.await(5000, 10,
() -> task.getCurrentIterationsStatistic().size() == 1 &&
task.getCurrentIterationsStatistic().get(0).getIterationResult().equals("ITERATION_COMPLETED"));
"ITERATION_COMPLETED".equals(task.getCurrentIterationsStatistic().get(0).getIterationResult()));
List<ContainerBalancerTaskIterationStatusInfo> iterationsStatic = task.getCurrentIterationsStatistic();
assertEquals(1, iterationsStatic.size());

Expand Down Expand Up @@ -160,9 +160,9 @@ void testGetCurrentStatisticsWhileBalancingInProgress() throws Exception {

ContainerBalancerTask task = mockedScm.startBalancerTaskAsync(config, false);
// Get the current iteration statistics when it has information about the containers moving.
LambdaTestUtils.await(5000, 1, () -> task.getCurrentIterationsStatistic().size() == 2 &&
task.getCurrentIterationsStatistic().get(1).getContainerMovesScheduled() > 0
);
LambdaTestUtils.await(5000, 1,
() -> task.getCurrentIterationsStatistic().size() == 2 &&
task.getCurrentIterationsStatistic().get(1).getContainerMovesScheduled() > 0);
List<ContainerBalancerTaskIterationStatusInfo> iterationsStatic = task.getCurrentIterationsStatistic();
assertEquals(2, iterationsStatic.size());
ContainerBalancerTaskIterationStatusInfo currentIteration = iterationsStatic.get(1);
Expand Down

0 comments on commit 470d49a

Please sign in to comment.