You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (Jira)" <ji...@apache.org> on 2022/02/21 17:06:00 UTC

[jira] [Commented] (HADOOP-18137) Verify FileUtils.unTar() handling of missing .tgz files

    [ 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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org