diff --git a/integration-test/common/src/test/java/org/apache/uniffle/test/CoordinatorReconfigureNodeMaxTest.java b/integration-test/common/src/test/java/org/apache/uniffle/test/CoordinatorReconfigureNodeMaxTest.java index 4eb10caa08..d79fd67d81 100644 --- a/integration-test/common/src/test/java/org/apache/uniffle/test/CoordinatorReconfigureNodeMaxTest.java +++ b/integration-test/common/src/test/java/org/apache/uniffle/test/CoordinatorReconfigureNodeMaxTest.java @@ -131,6 +131,13 @@ public void testReconfigureNodeMax() throws Exception { assertEquals(5, info.getServerToPartitionRanges().keySet().size()); // case3: recover its value to 10 + // Make sure last modification time change + File tempConfFile = new File(tempConfFilePath); + long currentTime = System.currentTimeMillis(); + if (currentTime - tempConfFile.lastModified() < 1000) { + Thread.sleep(1000 - (currentTime - tempConfFile.lastModified())); + } + try (FileWriter fileWriter = new FileWriter(tempConfFilePath)) { fileWriter.append(CoordinatorConf.COORDINATOR_SHUFFLE_NODES_MAX.key() + " " + 10); }