yihua commented on code in PR #9309:
URL: https://github.com/apache/hudi/pull/9309#discussion_r1278203823
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/marker/DirectWriteMarkers.java:
##########
@@ -189,13 +190,12 @@ private Option<Path> create(Path markerPath, boolean
checkIfExists) {
} catch (IOException e) {
throw new HoodieIOException("Failed to make dir " + dirPath, e);
}
- try {
+ try (FSDataOutputStream fsDataOutputStream = fs.create(markerPath, false))
{
Review Comment:
This has to come after checking if the marker path already exists.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]