Skip to content

Commit

Permalink
DRILL-5274: Exception thrown in Drillbit shutdown in UDF cleanup code
Browse files Browse the repository at this point in the history
closes #760
  • Loading branch information
arina-ielchiieva authored and sudheeshkatkam committed Feb 25, 2017
1 parent 6bc398f commit 470558e
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -466,7 +466,10 @@ public void close() {
FileUtils.deleteQuietly(tmpDir);
} else {
try {
FileUtils.cleanDirectory(new File(localUdfDir.toUri().getPath()));
File localDir = new File(localUdfDir.toUri().getPath());
if (localDir.exists()) {
FileUtils.cleanDirectory(localDir);
}
} catch (IOException e) {
logger.warn("Problems during local udf directory clean up", e);
}
Expand Down

0 comments on commit 470558e

Please sign in to comment.