[jira] [Updated] (HDFS-14722) RBF: GetMountPointStatus should return mountTable information when getFileInfoAll throw IOException
[ https://issues.apache.org/jira/browse/HDFS-14722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ayush Saxena updated HDFS-14722: Fix Version/s: 3.3.0 Hadoop Flags: Reviewed Resolution: Fixed Status: Resolved (was: Patch Available) > RBF: GetMountPointStatus should return mountTable information when > getFileInfoAll throw IOException > --- > > Key: HDFS-14722 > URL: https://issues.apache.org/jira/browse/HDFS-14722 > Project: Hadoop HDFS > Issue Type: Bug > Components: rbf >Reporter: xuzq >Assignee: xuzq >Priority: Major > Fix For: 3.3.0 > > Attachments: HDFS-14722-trunk-001.patch, HDFS-14722-trunk-002.patch, > HDFS-14722-trunk-003.patch, HDFS-14722-trunk-004.patch, > HDFS-14722-trunk-005.patch, HDFS-14722-trunk-006.patch, > HDFS-14722-trunk-bug-discuss.patch > > > When IOException in getFileInfoAll, we should return the mountTable > informations instead of super information. > Code like: > {code:java} > // RouterClientProtocol#getMountPointStatus > try { > String mName = name.startsWith("/") ? name : "/" + name; > MountTableResolver mountTable = (MountTableResolver) subclusterResolver; > MountTable entry = mountTable.getMountPoint(mName); > if (entry != null) { > RemoteMethod method = new RemoteMethod("getFileInfo", > new Class[] {String.class}, new RemoteParam()); > HdfsFileStatus fInfo = getFileInfoAll( > entry.getDestinations(), method, mountStatusTimeOut); > if (fInfo != null) { > permission = fInfo.getPermission(); > owner = fInfo.getOwner(); > group = fInfo.getGroup(); > childrenNum = fInfo.getChildrenNum(); > } else { > permission = entry.getMode(); > owner = entry.getOwnerName(); > group = entry.getGroupName(); > } > } > } catch (IOException e) { > LOG.error("Cannot get mount point: {}", e.getMessage()); > } > {code} -- This message was sent by Atlassian Jira (v8.3.2#803003) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Updated] (HDFS-14722) RBF: GetMountPointStatus should return mountTable information when getFileInfoAll throw IOException
[ https://issues.apache.org/jira/browse/HDFS-14722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] xuzq updated HDFS-14722: Attachment: HDFS-14722-trunk-006.patch > RBF: GetMountPointStatus should return mountTable information when > getFileInfoAll throw IOException > --- > > Key: HDFS-14722 > URL: https://issues.apache.org/jira/browse/HDFS-14722 > Project: Hadoop HDFS > Issue Type: Bug > Components: rbf >Reporter: xuzq >Assignee: xuzq >Priority: Major > Attachments: HDFS-14722-trunk-001.patch, HDFS-14722-trunk-002.patch, > HDFS-14722-trunk-003.patch, HDFS-14722-trunk-004.patch, > HDFS-14722-trunk-005.patch, HDFS-14722-trunk-006.patch, > HDFS-14722-trunk-bug-discuss.patch > > > When IOException in getFileInfoAll, we should return the mountTable > informations instead of super information. > Code like: > {code:java} > // RouterClientProtocol#getMountPointStatus > try { > String mName = name.startsWith("/") ? name : "/" + name; > MountTableResolver mountTable = (MountTableResolver) subclusterResolver; > MountTable entry = mountTable.getMountPoint(mName); > if (entry != null) { > RemoteMethod method = new RemoteMethod("getFileInfo", > new Class[] {String.class}, new RemoteParam()); > HdfsFileStatus fInfo = getFileInfoAll( > entry.getDestinations(), method, mountStatusTimeOut); > if (fInfo != null) { > permission = fInfo.getPermission(); > owner = fInfo.getOwner(); > group = fInfo.getGroup(); > childrenNum = fInfo.getChildrenNum(); > } else { > permission = entry.getMode(); > owner = entry.getOwnerName(); > group = entry.getGroupName(); > } > } > } catch (IOException e) { > LOG.error("Cannot get mount point: {}", e.getMessage()); > } > {code} -- This message was sent by Atlassian Jira (v8.3.2#803003) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Updated] (HDFS-14722) RBF: GetMountPointStatus should return mountTable information when getFileInfoAll throw IOException
[ https://issues.apache.org/jira/browse/HDFS-14722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] xuzq updated HDFS-14722: Attachment: HDFS-14722-trunk-005.patch > RBF: GetMountPointStatus should return mountTable information when > getFileInfoAll throw IOException > --- > > Key: HDFS-14722 > URL: https://issues.apache.org/jira/browse/HDFS-14722 > Project: Hadoop HDFS > Issue Type: Bug > Components: rbf >Reporter: xuzq >Assignee: xuzq >Priority: Major > Attachments: HDFS-14722-trunk-001.patch, HDFS-14722-trunk-002.patch, > HDFS-14722-trunk-003.patch, HDFS-14722-trunk-004.patch, > HDFS-14722-trunk-005.patch, HDFS-14722-trunk-bug-discuss.patch > > > When IOException in getFileInfoAll, we should return the mountTable > informations instead of super information. > Code like: > {code:java} > // RouterClientProtocol#getMountPointStatus > try { > String mName = name.startsWith("/") ? name : "/" + name; > MountTableResolver mountTable = (MountTableResolver) subclusterResolver; > MountTable entry = mountTable.getMountPoint(mName); > if (entry != null) { > RemoteMethod method = new RemoteMethod("getFileInfo", > new Class[] {String.class}, new RemoteParam()); > HdfsFileStatus fInfo = getFileInfoAll( > entry.getDestinations(), method, mountStatusTimeOut); > if (fInfo != null) { > permission = fInfo.getPermission(); > owner = fInfo.getOwner(); > group = fInfo.getGroup(); > childrenNum = fInfo.getChildrenNum(); > } else { > permission = entry.getMode(); > owner = entry.getOwnerName(); > group = entry.getGroupName(); > } > } > } catch (IOException e) { > LOG.error("Cannot get mount point: {}", e.getMessage()); > } > {code} -- This message was sent by Atlassian Jira (v8.3.2#803003) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Updated] (HDFS-14722) RBF: GetMountPointStatus should return mountTable information when getFileInfoAll throw IOException
[ https://issues.apache.org/jira/browse/HDFS-14722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] xuzq updated HDFS-14722: Attachment: HDFS-14722-trunk-004.patch > RBF: GetMountPointStatus should return mountTable information when > getFileInfoAll throw IOException > --- > > Key: HDFS-14722 > URL: https://issues.apache.org/jira/browse/HDFS-14722 > Project: Hadoop HDFS > Issue Type: Bug > Components: rbf >Reporter: xuzq >Assignee: xuzq >Priority: Major > Attachments: HDFS-14722-trunk-001.patch, HDFS-14722-trunk-002.patch, > HDFS-14722-trunk-003.patch, HDFS-14722-trunk-004.patch, > HDFS-14722-trunk-bug-discuss.patch > > > When IOException in getFileInfoAll, we should return the mountTable > informations instead of super information. > Code like: > {code:java} > // RouterClientProtocol#getMountPointStatus > try { > String mName = name.startsWith("/") ? name : "/" + name; > MountTableResolver mountTable = (MountTableResolver) subclusterResolver; > MountTable entry = mountTable.getMountPoint(mName); > if (entry != null) { > RemoteMethod method = new RemoteMethod("getFileInfo", > new Class[] {String.class}, new RemoteParam()); > HdfsFileStatus fInfo = getFileInfoAll( > entry.getDestinations(), method, mountStatusTimeOut); > if (fInfo != null) { > permission = fInfo.getPermission(); > owner = fInfo.getOwner(); > group = fInfo.getGroup(); > childrenNum = fInfo.getChildrenNum(); > } else { > permission = entry.getMode(); > owner = entry.getOwnerName(); > group = entry.getGroupName(); > } > } > } catch (IOException e) { > LOG.error("Cannot get mount point: {}", e.getMessage()); > } > {code} -- This message was sent by Atlassian Jira (v8.3.2#803003) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Updated] (HDFS-14722) RBF: GetMountPointStatus should return mountTable information when getFileInfoAll throw IOException
[ https://issues.apache.org/jira/browse/HDFS-14722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] xuzq updated HDFS-14722: Attachment: HDFS-14722-trunk-bug-discuss.patch > RBF: GetMountPointStatus should return mountTable information when > getFileInfoAll throw IOException > --- > > Key: HDFS-14722 > URL: https://issues.apache.org/jira/browse/HDFS-14722 > Project: Hadoop HDFS > Issue Type: Bug > Components: rbf >Reporter: xuzq >Assignee: xuzq >Priority: Major > Attachments: HDFS-14722-trunk-001.patch, HDFS-14722-trunk-002.patch, > HDFS-14722-trunk-003.patch, HDFS-14722-trunk-bug-discuss.patch > > > When IOException in getFileInfoAll, we should return the mountTable > informations instead of super information. > Code like: > {code:java} > // RouterClientProtocol#getMountPointStatus > try { > String mName = name.startsWith("/") ? name : "/" + name; > MountTableResolver mountTable = (MountTableResolver) subclusterResolver; > MountTable entry = mountTable.getMountPoint(mName); > if (entry != null) { > RemoteMethod method = new RemoteMethod("getFileInfo", > new Class[] {String.class}, new RemoteParam()); > HdfsFileStatus fInfo = getFileInfoAll( > entry.getDestinations(), method, mountStatusTimeOut); > if (fInfo != null) { > permission = fInfo.getPermission(); > owner = fInfo.getOwner(); > group = fInfo.getGroup(); > childrenNum = fInfo.getChildrenNum(); > } else { > permission = entry.getMode(); > owner = entry.getOwnerName(); > group = entry.getGroupName(); > } > } > } catch (IOException e) { > LOG.error("Cannot get mount point: {}", e.getMessage()); > } > {code} -- This message was sent by Atlassian JIRA (v7.6.14#76016) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Updated] (HDFS-14722) RBF: GetMountPointStatus should return mountTable information when getFileInfoAll throw IOException
[ https://issues.apache.org/jira/browse/HDFS-14722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] xuzq updated HDFS-14722: Attachment: HDFS-14722-trunk-003.patch > RBF: GetMountPointStatus should return mountTable information when > getFileInfoAll throw IOException > --- > > Key: HDFS-14722 > URL: https://issues.apache.org/jira/browse/HDFS-14722 > Project: Hadoop HDFS > Issue Type: Bug > Components: rbf >Reporter: xuzq >Assignee: xuzq >Priority: Major > Attachments: HDFS-14722-trunk-001.patch, HDFS-14722-trunk-002.patch, > HDFS-14722-trunk-003.patch > > > When IOException in getFileInfoAll, we should return the mountTable > informations instead of super information. > Code like: > {code:java} > // RouterClientProtocol#getMountPointStatus > try { > String mName = name.startsWith("/") ? name : "/" + name; > MountTableResolver mountTable = (MountTableResolver) subclusterResolver; > MountTable entry = mountTable.getMountPoint(mName); > if (entry != null) { > RemoteMethod method = new RemoteMethod("getFileInfo", > new Class[] {String.class}, new RemoteParam()); > HdfsFileStatus fInfo = getFileInfoAll( > entry.getDestinations(), method, mountStatusTimeOut); > if (fInfo != null) { > permission = fInfo.getPermission(); > owner = fInfo.getOwner(); > group = fInfo.getGroup(); > childrenNum = fInfo.getChildrenNum(); > } else { > permission = entry.getMode(); > owner = entry.getOwnerName(); > group = entry.getGroupName(); > } > } > } catch (IOException e) { > LOG.error("Cannot get mount point: {}", e.getMessage()); > } > {code} -- This message was sent by Atlassian JIRA (v7.6.14#76016) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Updated] (HDFS-14722) RBF: GetMountPointStatus should return mountTable information when getFileInfoAll throw IOException
[ https://issues.apache.org/jira/browse/HDFS-14722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] He Xiaoqiao updated HDFS-14722: --- Status: Patch Available (was: Open) > RBF: GetMountPointStatus should return mountTable information when > getFileInfoAll throw IOException > --- > > Key: HDFS-14722 > URL: https://issues.apache.org/jira/browse/HDFS-14722 > Project: Hadoop HDFS > Issue Type: Bug > Components: rbf >Reporter: xuzq >Assignee: xuzq >Priority: Major > Attachments: HDFS-14722-trunk-001.patch, HDFS-14722-trunk-002.patch > > > When IOException in getFileInfoAll, we should return the mountTable > informations instead of super information. > Code like: > {code:java} > // RouterClientProtocol#getMountPointStatus > try { > String mName = name.startsWith("/") ? name : "/" + name; > MountTableResolver mountTable = (MountTableResolver) subclusterResolver; > MountTable entry = mountTable.getMountPoint(mName); > if (entry != null) { > RemoteMethod method = new RemoteMethod("getFileInfo", > new Class[] {String.class}, new RemoteParam()); > HdfsFileStatus fInfo = getFileInfoAll( > entry.getDestinations(), method, mountStatusTimeOut); > if (fInfo != null) { > permission = fInfo.getPermission(); > owner = fInfo.getOwner(); > group = fInfo.getGroup(); > childrenNum = fInfo.getChildrenNum(); > } else { > permission = entry.getMode(); > owner = entry.getOwnerName(); > group = entry.getGroupName(); > } > } > } catch (IOException e) { > LOG.error("Cannot get mount point: {}", e.getMessage()); > } > {code} -- This message was sent by Atlassian JIRA (v7.6.14#76016) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Updated] (HDFS-14722) RBF: GetMountPointStatus should return mountTable information when getFileInfoAll throw IOException
[ https://issues.apache.org/jira/browse/HDFS-14722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] xuzq updated HDFS-14722: Attachment: HDFS-14722-trunk-002.patch > RBF: GetMountPointStatus should return mountTable information when > getFileInfoAll throw IOException > --- > > Key: HDFS-14722 > URL: https://issues.apache.org/jira/browse/HDFS-14722 > Project: Hadoop HDFS > Issue Type: Bug > Components: rbf >Reporter: xuzq >Assignee: xuzq >Priority: Major > Attachments: HDFS-14722-trunk-001.patch, HDFS-14722-trunk-002.patch > > > When IOException in getFileInfoAll, we should return the mountTable > informations instead of super information. > Code like: > {code:java} > // RouterClientProtocol#getMountPointStatus > try { > String mName = name.startsWith("/") ? name : "/" + name; > MountTableResolver mountTable = (MountTableResolver) subclusterResolver; > MountTable entry = mountTable.getMountPoint(mName); > if (entry != null) { > RemoteMethod method = new RemoteMethod("getFileInfo", > new Class[] {String.class}, new RemoteParam()); > HdfsFileStatus fInfo = getFileInfoAll( > entry.getDestinations(), method, mountStatusTimeOut); > if (fInfo != null) { > permission = fInfo.getPermission(); > owner = fInfo.getOwner(); > group = fInfo.getGroup(); > childrenNum = fInfo.getChildrenNum(); > } else { > permission = entry.getMode(); > owner = entry.getOwnerName(); > group = entry.getGroupName(); > } > } > } catch (IOException e) { > LOG.error("Cannot get mount point: {}", e.getMessage()); > } > {code} -- This message was sent by Atlassian JIRA (v7.6.14#76016) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Updated] (HDFS-14722) RBF: GetMountPointStatus should return mountTable information when getFileInfoAll throw IOException
[ https://issues.apache.org/jira/browse/HDFS-14722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] xuzq updated HDFS-14722: Attachment: HDFS-14722-trunk-001.patch > RBF: GetMountPointStatus should return mountTable information when > getFileInfoAll throw IOException > --- > > Key: HDFS-14722 > URL: https://issues.apache.org/jira/browse/HDFS-14722 > Project: Hadoop HDFS > Issue Type: Bug > Components: rbf >Reporter: xuzq >Assignee: xuzq >Priority: Major > Attachments: HDFS-14722-trunk-001.patch > > > When IOException in getFileInfoAll, we should return the mountTable > informations instead of super information. > Code like: > {code:java} > // RouterClientProtocol#getMountPointStatus > try { > String mName = name.startsWith("/") ? name : "/" + name; > MountTableResolver mountTable = (MountTableResolver) subclusterResolver; > MountTable entry = mountTable.getMountPoint(mName); > if (entry != null) { > RemoteMethod method = new RemoteMethod("getFileInfo", > new Class[] {String.class}, new RemoteParam()); > HdfsFileStatus fInfo = getFileInfoAll( > entry.getDestinations(), method, mountStatusTimeOut); > if (fInfo != null) { > permission = fInfo.getPermission(); > owner = fInfo.getOwner(); > group = fInfo.getGroup(); > childrenNum = fInfo.getChildrenNum(); > } else { > permission = entry.getMode(); > owner = entry.getOwnerName(); > group = entry.getGroupName(); > } > } > } catch (IOException e) { > LOG.error("Cannot get mount point: {}", e.getMessage()); > } > {code} -- This message was sent by Atlassian JIRA (v7.6.14#76016) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org