Uploaded image for project: 'Crunch'
  1. Crunch
  2. CRUNCH-683

Avoid unnecessary listStatus calls from getSize computation

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.14.0
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      The getPathSize computation in SourceTargetHelper currently makes unnecessary listStatus calls when recursing over a directory, which can cause performance issues when the filesystem is an object store such as S3. The performance can be improved with the addition of a private method to use for the getPathSize recursion that takes a known FIleStatus object as a parameter.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jwills Josh Wills
                Reporter:
                jonhemphill Jon Hemphill
              • 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 10m
                  1h 10m