[ 
https://issues.apache.org/jira/browse/HDFS-14009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wei-Chiu Chuang updated HDFS-14009:
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.4
           Status: Resolved  (was: Patch Available)

Pushed to branch-3.0. Thanks!

> HttpFS: FileStatus#setSnapShotEnabledFlag throws InvocationTargetException 
> when attribute set is emptySet
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-14009
>                 URL: https://issues.apache.org/jira/browse/HDFS-14009
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs, httpfs
>    Affects Versions: 3.0.3
>            Reporter: Siyao Meng
>            Assignee: Siyao Meng
>            Priority: Major
>             Fix For: 3.0.4
>
>         Attachments: HDFS-14009.branch-3.0.001.patch
>
>
> FileStatus#setSnapShotEnabledFlag throws InvocationTargetException when 
> attribute set (attr) is Collections.emptySet().
> This happens when a FileStatus object is created with none of the four 
> attributes flags (ACL, Encrypted, EC, Snapshot Enabled) and then 
> FileStatus#setSnapShotEnabledFlag is called.
> Rationale for not adding additional tests: The exception is easily 
> reproducible by running existing HttpFS test case 
> TestHttpFSWithHttpFSFileSystem#testOperation[23] (ENCRYPTION). The test 
> passes after the patch is applied.
> Note that FileStatus#setSnapShotEnabledFlag is already gone in trunk (by 
> HDFS-12681).



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

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

Reply via email to