Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-16728

SFTPFileSystem connection pool not reusing connections properly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2.1
    • Fix Version/s: None
    • Component/s: fs
    • Labels:

      Description

      This issue is trying to address few issues in the SFTP filesystem, and especially in SFTPConnectionPool:

      • all channels for a given connectionInfo are removed from the pool instead of only the selected channel.
      • Closed connections are added back into the pool. They should be filtered out.
      • The SFTPInputStream is closing the stream instead of returning it into the pool.
      • Some connection leak could happen in some cases

      As a result, if you have multiple threads sharing the pool, the SFTP filesystem is underperforming by untimely re-establishing SSH connections.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bperroud Benoit Perroud
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: