Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-4442

Eliminate redundant RPC call to get file information in HPath.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.13.0
    • 0.15.0
    • None
    • None
    • Reviewed

    Description

      The HPath class makes 2 separate calls to FileSystem#getFileStatus to get the block size and replication. In the case of HDFS, this results in 2 separate but identical RPC transactions with the NameNode. The situation is the same for many other alternative FileSystem implementations too. We can get a minor latency improvement and lighten some RPC load on the remote services by using a single call and getting the block size and replication from the same response.

      Attachments

        1. PIG-4442.001.patch
          1.0 kB
          Chris Nauroth

        Issue Links

          Activity

            People

              cnauroth Chris Nauroth
              cnauroth Chris Nauroth
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: