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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0, 2.0.0-alpha
    • 2.0.0-alpha
    • util
    • 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.

      Attachments

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

        Issue Links

          Activity

            People

              tlipcon Todd Lipcon
              tlipcon Todd Lipcon
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: