hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-13840) Implement getUsed() for ViewFileSystem
Date Tue, 29 Nov 2016 12:02:58 GMT

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

Steve Loughran commented on HADOOP-13840:

can you switch to {{assertEquals()}} for the equality test in the assertion; it provides meaningful
details on a failure *provided the expected value comes first(

assertEquals("space used", usedSpceByPathViaTargetFs ,usedSpcByPathViaViewFs)

> Implement getUsed() for ViewFileSystem
> --------------------------------------
>                 Key: HADOOP-13840
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13840
>             Project: Hadoop Common
>          Issue Type: Task
>          Components: viewfs
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Manoj Govindassamy
>            Assignee: Manoj Govindassamy
>         Attachments: HADOOP-13840.01.patch
> ViewFileSystem doesn't override {{FileSystem#getUSed()}}. So, when file system used space
is queried for slash root "/" paths, the default implementations tries to run the {{getContentSummary}}
which crashes on seeing unexpected mount points under slash. 
> ViewFileSystem#getUsed() is not expected to collate all the space used from all the mount
points configured under "/". Proposal is to avoid invoking FileSystem#getUsed() and throw
NotInMountPointException until LinkMergeSlash is supported.

This message was sent by Atlassian JIRA

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

View raw message