Skip to content
Merged
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 @@ -984,11 +984,11 @@ private List<ManifestFile> newDataFilesAsManifests() {
writer.close();
}
this.cachedNewDataManifests.addAll(writer.toManifestFiles());
this.hasNewDataFiles = false;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it caused issues but it would be more correct to set hasNewDataFiles to false after processing all new data files, similarly to what we do for delete files. Otherwise, it is confusing.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah agreed, this change is easier to read. Also agree that setting it to false prematurely shouldn't have caused issues, looking at how hasNewDataFiles is used

} catch (IOException e) {
throw new RuntimeIOException(e, "Failed to close manifest writer");
}
});
this.hasNewDataFiles = false;
}

return cachedNewDataManifests;
Expand Down