divijvaidya opened a new pull request, #12197:
URL: https://github.com/apache/kafka/pull/12197

   `File.createNewFile()` returns a boolean signifying whether the file 
creation was successful or not. There are multiple places in the Kafka code 
base where we are not checking the value of the returned boolean.
   
   Replacing it with the Files.createFile() API will decrease the chances of 
inadvertent bugs in the code base since Files.createFile() API thrown 
exceptions when the creation is not successful.
   
   Note that this is one of many PRs which would help us leverage new features 
introduced in NIO.2 Java APIs. The parent task is listed at 
https://issues.apache.org/jira/browse/KAFKA-13928
   


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to