jnh5y commented on code in PR #23680: URL: https://github.com/apache/flink/pull/23680#discussion_r1406604611
########## flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/plan/nodes/exec/testutils/RestoreTestBase.java: ########## @@ -181,12 +186,25 @@ public void generateTestSetupFiles(TableTestProgram program) throws Exception { CommonTestUtils.waitForJobStatus(jobClient, Collections.singletonList(JobStatus.FINISHED)); final Path savepointPath = Paths.get(new URI(savepoint)); final Path savepointDirPath = getSavepointPath(program, getLatestMetadata()); - Files.createDirectories(savepointDirPath); + // Delete directory savepointDirPath if it already exists + if (Files.exists(savepointDirPath)) { + Files.walk(savepointDirPath).map(Path::toFile).forEach(java.io.File::delete); + } else { + Files.createDirectories(savepointDirPath); + } Review Comment: Removed! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org