Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-15633

Avoid redundant RPC calls for getDiskStatus

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      There are 3 RPC calls to fetch the same values :

        public FsStatus getDiskStatus() throws IOException {
          return new FsStatus(getStateByIndex(0),
              getStateByIndex(1), getStateByIndex(2));
        }
      

      getStateByIndex() is called thrice, which is actually a getStats RPC to namenode, The same could have been achieved by just one call

      Attachments

        Issue Links

          Activity

            People

              ayushtkn Ayush Saxena
              ayushtkn Ayush Saxena
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m