Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use Awaitility.await() instead of sleep?

}

try (FileWriter fileWriter = new FileWriter(tempConfFilePath)) {
fileWriter.append(CoordinatorConf.COORDINATOR_SHUFFLE_NODES_MAX.key() + " " + 10);
}
Expand Down
Loading