[ https://issues.apache.org/jira/browse/HADOOP-13840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15703919#comment-15703919 ]
Manoj Govindassamy edited comment on HADOOP-13840 at 11/29/16 2:23 AM: ----------------------------------------------------------------------- Attached v0 patch to address the following 1. Made {{ViewFileSystem#getUsed()}} to throw an exception when the SlashRoot is not supported or not configured. 2. Test to validate getUsed() returning same space usage numbers when accessed via ViewFileSystem and the target FileSystem. [~andrew.wang], can you please review the patch ? was (Author: manojg): Attached v0 patch to address the following 1. Made {{ViewFileSystem#getUsed()}} to throw an exception when the SlashRoot is not supported or not configured. 2. Test to validate getUsed() returning same space usage numbers when accessed via ViewFileSystem and the target FileSystem. > 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 (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org