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

Steve Loughran commented on HADOOP-18137:
-----------------------------------------

from my experiments, the failure of gunzip isn't picked up.

proposed: test that the file exists before calling gunzip, ideally in the java 
code so that a failure can be more meaningful than just "shell returned 1"

one thing to get right here though is canonicalisation of paths. the file probe 
needs to be consistent with whatever is done/expected today

> Verify FileUtils.unTar() handling of missing .tgz files
> -------------------------------------------------------
>
>                 Key: HADOOP-18137
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18137
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: test, util
>    Affects Versions: 3.3.1
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>            Priority: Minor
>
> add a test to verify FileUtils.unTar() of a non .gz fails meaningfully if 
> file isn't present; fix if not.
> test both the unix and windows paths.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to