You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2021/01/06 20:23:02 UTC

[GitHub] [hive] yongzhi commented on a change in pull request #1816: HIVE-24570 Hive on spark tmp file should be delete when driver process finished

yongzhi commented on a change in pull request #1816:
URL: https://github.com/apache/hive/pull/1816#discussion_r552943505



##########
File path: spark-client/src/main/java/org/apache/hive/spark/client/AbstractSparkClient.java
##########
@@ -260,7 +265,7 @@ public void cancel(String jobId) {
     if (!properties.setReadable(false) || !properties.setReadable(true, true)) {
       throw new IOException("Cannot change permissions of job properties file.");
     }
-    properties.deleteOnExit();
+    sparkTmpProperties = properties;

Review comment:
       Is sparkTmpProperties only assigned when cancel called? Is there any normal scenario the properties need to be deleted?




----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org