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

TestWebHdfsContentLength intermittently hangs and fails due to TCP conversation mismatch between client and server.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • test
    • None
    • Reviewed

    Description

      TestWebHdfsContentLength runs a simple hand-coded HTTP server in a background thread to simulate some WebHDFS server responses. In some environments (notably Windows), I have observed that the test can hang and fail intermittently. The root cause is that the server fails to fully consume the client's input. This causes a mismatch in the TCP conversation state, and ultimately the client side hangs, then aborts after the 60-second socket timeout.

      Attachments

        1. HDFS-9384.003.patch
          2 kB
          Chris Nauroth
        2. HDFS-9384.002.patch
          2 kB
          Chris Nauroth
        3. HDFS-9384.001.patch
          1 kB
          Chris Nauroth

        Activity

          People

            cnauroth Chris Nauroth
            cnauroth Chris Nauroth
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: