Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20666

Scp Task is slow due to high number of disk operations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 7.0.0, 6.10.4
    • 6.7.0
    • SCP and SSH tasks
    • None

      Issue Summary

      ScpTask calls File.getCanonicalPath() a lot of times. (O(n^2) complexity)

      Environment

      Any.

      Steps to Reproduce

      1. Create an artifact with big number of file
      2. Use an Scp task to copy it

      Expected Results

      Task completes in reasonable time (should be linear to number of files and total size of them)

      Actual Results

      Performance degrades very fast with increasing number of files.

      Notes

      (Optional - If Necessary)

      Workaround

      Tar and/or zip your artifact prior to transfering it.

              mgardias Marcin Gardias
              mgardias Marcin Gardias
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: