[ 
https://issues.apache.org/jira/browse/HIVE-28335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17874217#comment-17874217
 ] 

Steve Loughran commented on HIVE-28335:
---------------------------------------

this used in production? it tends to be a sequential scan and delete of the 
list...I don't know of any implementations with parallel execution as it's been 
intended from the outset as test cleanup

> Review deleteOnExitUsage
> ------------------------
>
>                 Key: HIVE-28335
>                 URL: https://issues.apache.org/jira/browse/HIVE-28335
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: László Bodor
>            Priority: Major
>
> This is the followup after HIVE-27884 where I finally decided to leave 
> deleteOnExit as is because I didn't need to change it.
>  so in the scope of this we need to check and remove all deleteOnExit calls 
> that belong to hadoop FileSystem objects (doesn't necessarily apply to 
> java.io.File.deleteOnExit calls):
> {code}
> grep -iRH "deleteOnExit" --include="*.java" | grep -v "test"
> ...
> ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java:        // 
> in recent hadoop versions, use deleteOnExit to clean tmp files.
> ql/src/java/org/apache/hadoop/hive/ql/exec/FileSinkOperator.java:        
> autoDelete = fs.deleteOnExit(fsp.outPaths[filesIdx]);
> ql/src/java/org/apache/hadoop/hive/ql/exec/repl/bootstrap/load/util/PathInfo.java:
>         fileSystem.deleteOnExit(dir);
> ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/RowContainer.java:     
>  parentDir.deleteOnExit();
> ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/RowContainer.java:     
>  tmpFile.deleteOnExit();
> ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/KeyValueContainer.java:
>         parentDir.deleteOnExit();
> ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/KeyValueContainer.java:
>         tmpFile.deleteOnExit();
> ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/ObjectContainer.java:  
>       tmpFile.deleteOnExit();
> ql/src/java/org/apache/hadoop/hive/ql/exec/AbstractFileMergeOperator.java:    
>     autoDelete = fs.deleteOnExit(outPath);
> {code}
> as a reference from previous ticket: 
> [commit|https://github.com/abstractdog/hive/commit/7a9d299f6994ca5a8c17486549103b25692b5cba]
> it caused some hdfs counters difference in q.outs, needs to investigate
> {code}
> mvn install -DfailIfNoTests=true -Dtest.output.overwrite=true 
> -Pitests,iceberg -Denforcer.skip=true -pl itests/qtest 
> -Dtest=TestMiniLlapCliDriver 
> -Dqfile=orc_llap_counters.q,orc_llap_counters1.q,orc_ppd_basic.q,orc_ppd_schema_evol_3a.q
>  -nsu
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to