[ https://issues.apache.org/jira/browse/HDFS-15633?focusedWorklogId=501366&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-501366 ]
ASF GitHub Bot logged work on HDFS-15633: ----------------------------------------- Author: ASF GitHub Bot Created on: 16/Oct/20 02:18 Start Date: 16/Oct/20 02:18 Worklog Time Spent: 10m Work Description: ferhui commented on pull request #2386: URL: https://github.com/apache/hadoop/pull/2386#issuecomment-709689366 +1 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 501366) Time Spent: 1.5h (was: 1h 20m) > 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 > Time Spent: 1.5h > 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-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org