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

Prabhu Joseph commented on HADOOP-16374:
----------------------------------------

Okay then both cleanup are required and also the second cleanup call will 
return immediately as metaFolder will be set to null by earlier cleanup. Will 
close this as Not a Problem, was assuming wrongly that CLEANUP ShutDown Hook 
will be called in all scenarios.

> Fix DistCp#cleanup called twice unnecessarily
> ---------------------------------------------
>
>                 Key: HADOOP-16374
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16374
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: tools/distcp
>    Affects Versions: 3.3.0
>            Reporter: Prabhu Joseph
>            Assignee: Prabhu Joseph
>            Priority: Minor
>         Attachments: HADOOP-16374-001.patch
>
>
> DistCp#cleanup called twice unnecessarily - one at finally clause insideĀ 
> createAndSubmitJob and another by Cleanup thread invoked by ShutDownHook.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to