pvary commented on code in PR #13831: URL: https://github.com/apache/iceberg/pull/13831#discussion_r2282579397
########## flink/v2.0/flink/src/test/java/org/apache/iceberg/flink/maintenance/operator/TestDeleteFilesProcessor.java: ########## @@ -74,27 +79,172 @@ void testDeleteMissingFile() throws Exception { Path dummyFile = FileSystems.getDefault().getPath(table.location().substring(5), DUMMY_FILE_NAME); - deleteFile(tableLoader(), dummyFile.toString()); + deleteFile(tableLoader(), dummyFile.toString(), true); assertThat(listFiles(table)).isEqualTo(TABLE_FILES); } @Test void testInvalidURIScheme() throws Exception { - deleteFile(tableLoader(), "wrong://"); + deleteFile(tableLoader(), "wrong://", false); assertThat(listFiles(table)).isEqualTo(TABLE_FILES); } - private void deleteFile(TableLoader tableLoader, String fileName) throws Exception { - tableLoader().open(); + @Test + void testDeleteNonExistentFile() throws Exception { + String nonexistentFile = "nonexistentFile.txt"; + + deleteFile(tableLoader(), nonexistentFile, true); + + assertThat(listFiles(table)).isEqualTo(TABLE_FILES); + } + + @Test + void testDeleteLargeFile() throws Exception { Review Comment: I don't understand this test case? Why would deleting a large file effect anything? -- 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...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org