You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2021/05/17 02:58:00 UTC

[jira] [Updated] (HDFS-15633) Avoid redundant RPC calls for getDiskStatus

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

Wei-Chiu Chuang updated HDFS-15633:
-----------------------------------
    Fix Version/s: 3.2.3
                   3.3.1

> Avoid redundant RPC calls for getDiskStatus
> -------------------------------------------
>
>                 Key: HDFS-15633
>                 URL: https://issues.apache.org/jira/browse/HDFS-15633
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: dfsclient
>            Reporter: Ayush Saxena
>            Assignee: Ayush Saxena
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.3.1, 3.4.0, 3.2.3
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> There are 3 RPC calls to fetch the same values :
> {code:java}
>   public FsStatus getDiskStatus() throws IOException {
>     return new FsStatus(getStateByIndex(0),
>         getStateByIndex(1), getStateByIndex(2));
>   }
> {code}
> {{getStateByIndex()}} is called thrice, which is actually a {{getStats}} RPC to namenode, The same could have been achieved by just one call



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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