[ https://issues.apache.org/jira/browse/HIVE-23638?focusedWorklogId=456061&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-456061 ]
ASF GitHub Bot logged work on HIVE-23638: ----------------------------------------- Author: ASF GitHub Bot Created on: 08/Jul/20 12:00 Start Date: 08/Jul/20 12:00 Worklog Time Spent: 10m Work Description: pgaref commented on a change in pull request #1161: URL: https://github.com/apache/hive/pull/1161#discussion_r451487709 ########## File path: common/src/java/org/apache/hadoop/hive/common/FileUtils.java ########## @@ -926,8 +925,7 @@ public static File createLocalDirsTempFile(Configuration conf, String prefix, St * delete a temporary file and remove it from delete-on-exit hook. */ public static boolean deleteTmpFile(File tempFile) { - if (tempFile != null) { - tempFile.delete(); + if (tempFile != null && tempFile.delete()) { Review comment: Good catch, fixed ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 456061) Time Spent: 1h 10m (was: 1h) > Fix FindBug issues in hive-common > --------------------------------- > > Key: HIVE-23638 > URL: https://issues.apache.org/jira/browse/HIVE-23638 > Project: Hive > Issue Type: Sub-task > Reporter: Panagiotis Garefalakis > Assignee: Panagiotis Garefalakis > Priority: Major > Labels: pull-request-available > Attachments: spotbugsXml.xml > > Time Spent: 1h 10m > Remaining Estimate: 0h > > mvn -Pspotbugs > -Dorg.slf4j.simpleLogger.log.org.apache.maven.plugin.surefire.SurefirePlugin=INFO > -pl :hive-common test-compile > com.github.spotbugs:spotbugs-maven-plugin:4.0.0:check -- This message was sent by Atlassian Jira (v8.3.4#803005)