public void commitPartitions() throws Exception {
        commitPartitions((subtaskIndex, attemptNumber) -> true);
    }
@Test
    void testNotPartition() throws Exception {
        FileSystemCommitter committer =
                new FileSystemCommitter(
                        fileSystemFactory,
                        metaStoreFactory,
                        true,
                        new Path(path.toString()),
                        0,
                        false,
                        identifier,
                        new LinkedHashMap<String, String>(),
                        policies);

        createFile(path, "task-1-attempt-0/", "f1", "f2");
        createFile(path, "task-2-attempt-0/", "f3");
        committer.commitPartitions();
        assertThat(new File(outputPath.toFile(), "f1")).exists();
        assertThat(new File(outputPath.toFile(), "f2")).exists();
        assertThat(new File(outputPath.toFile(), "f3")).exists();
        assertThat(new File(outputPath.toFile(), SUCCESS_FILE_NAME)).exists();

        createFile(path, "task-2-attempt-0/", "f4");
        committer.commitPartitions();
        assertThat(new File(outputPath.toFile(), "f4")).exists();
        assertThat(new File(outputPath.toFile(), SUCCESS_FILE_NAME)).exists();

        committer =
                new FileSystemCommitter(
                        fileSystemFactory,
                        metaStoreFactory,
                        false,
                        new Path(path.toString()),
                        0,
                        false,
                        identifier,
                        new LinkedHashMap<String, String>(),
                        policies);
        createFile(path, "task-2-attempt-0/", "f5");
        committer.commitPartitions();
        assertThat(new File(outputPath.toFile(), "f4")).exists();
        assertThat(new File(outputPath.toFile(), "f5")).exists();
        assertThat(new File(outputPath.toFile(), SUCCESS_FILE_NAME)).exists();
    }