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

DFSOutputStream.createSocketForPipeline() should not include timeout extension on connect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0-beta, 0.23.8, 3.0.0-alpha1
    • 2.1.0-beta, 0.23.8
    • None
    • None

    Description

      In createSocketForPipeline(), connect() is called with a timeout set to (socket_timeout + read_extension * num_datanodes). Since it is simply connecting to a single node, it does not make sense to increase connection timeout based on the number of datanodes.

      DFSInputStream is doing it correctly both in trunk and branch-2.

      Attachments

        1. 4807.trunk.v2.patch
          1.0 kB
          Cristina L. Abad
        2. 4807.trunk.patch
          0.9 kB
          Cristina L. Abad
        3. 4807.branch-2.v2.patch
          1.0 kB
          Cristina L. Abad
        4. 4807.branch-2.patch
          0.9 kB
          Cristina L. Abad
        5. 4807.branch-0.23.v2.patch
          0.9 kB
          Cristina L. Abad
        6. 4807.branch-0.23.patch
          0.9 kB
          Cristina L. Abad

        Activity

          People

            cabad Cristina L. Abad
            kihwal Kihwal Lee
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: