Skip to content

Commit

Permalink
Fix region reconstruction IT (#14753)
Browse files Browse the repository at this point in the history
* done

* done
  • Loading branch information
liyuheng55555 authored Jan 22, 2025
1 parent a681582 commit 79b0807
Showing 1 changed file with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,21 @@ public void normal1C3DTest() throws Exception {
EnvFactory.getAbstractEnv().checkNodeInStatus(dataNodeToBeClosed, NodeStatus.Running);
session.executeNonQueryStatement(
String.format(RECONSTRUCT_FORMAT, selectedRegion, dataNodeToBeReconstructed));
Awaitility.await()
.pollInterval(1, TimeUnit.SECONDS)
.atMost(1, TimeUnit.MINUTES)
.until(
() ->
getRegionStatusWithoutRunning(session).isEmpty()
&& dataDirToBeReconstructed.exists());
try {
Awaitility.await()
.pollInterval(1, TimeUnit.SECONDS)
.atMost(1, TimeUnit.MINUTES)
.until(
() ->
getRegionStatusWithoutRunning(session).isEmpty()
&& dataDirToBeReconstructed.getAbsoluteFile().exists());
} catch (Exception e) {
LOGGER.error(
"Two factor: {} && {}",
getRegionStatusWithoutRunning(session).isEmpty(),
dataDirToBeReconstructed.getAbsoluteFile().exists());
Assert.fail();
}
EnvFactory.getEnv().dataNodeIdToWrapper(dataNodeToBeClosed).get().stopForcibly();

// now, the query should work fine
Expand Down

0 comments on commit 79b0807

Please sign in to comment.