Hadoop Common
  1. Hadoop Common
  2. HADOOP-8350

Improve NetUtils.getInputStream to return a stream which has a tunable timeout

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 2.0.0-alpha
    • Fix Version/s: 2.0.0-alpha
    • Component/s: util
    • Labels:
      None

      Description

      Currently, NetUtils.getInputStream will set the timeout on the new stream based on the socket's configured timeout at the time of construction. After that, the timeout cannot be changed. This causes a problem for cases like HDFS-3357. One approach used in some places in the code is to construct new streams when the timeout has to be changed, but this can cause bugs given that the streams are often wrapped by BufferedInputStreams.

      1. hadoop-8350.txt
        21 kB
        Todd Lipcon
      2. hadoop-8350.txt
        22 kB
        Todd Lipcon
      3. hadoop-8350.txt
        22 kB
        Todd Lipcon

        Issue Links

          Activity

          Todd Lipcon created issue -
          Todd Lipcon made changes -
          Field Original Value New Value
          Link This issue blocks HDFS-3357 [ HDFS-3357 ]
          Todd Lipcon made changes -
          Attachment hadoop-8350.txt [ 12525490 ]
          Todd Lipcon made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Todd Lipcon made changes -
          Attachment hadoop-8350.txt [ 12525510 ]
          Todd Lipcon made changes -
          Attachment hadoop-8350.txt [ 12525516 ]
          Todd Lipcon made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Fix Version/s 2.0.0 [ 12320352 ]
          Resolution Fixed [ 1 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Ted Yu made changes -
          Link This issue relates to HBASE-6396 [ HBASE-6396 ]

            People

            • Assignee:
              Todd Lipcon
              Reporter:
              Todd Lipcon
            • Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development