siddharthteotia commented on a change in pull request #4418: Fix potential
resource leak in the way we close a collection of closeables
URL: https://github.com/apache/incubator-pinot/pull/4418#discussion_r303692257
##########
File path:
pinot-common/src/main/java/org/apache/pinot/common/utils/FileUtils.java
##########
@@ -18,16 +18,22 @@
*/
package org.apache.pinot.common.utils;
+import java.io.Closeable;
import java.io.File;
import java.io.IOException;
import java.nio.channels.FileChannel;
+import java.util.Arrays;
import java.util.Random;
+import javax.annotation.Nonnull;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public class FileUtils {
private FileUtils() {
}
+ private static final Logger LOGGER =
LoggerFactory.getLogger(FileUtils.class);
Review comment:
Done
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]