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

DataNode should have timeout on socket writes.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.15.1
    • 0.17.0
    • None
    • None

    Description

      If a client opens a file and stops reading in the middle, DataNode thread writing the data could be stuck forever. For DataNode sockets we set read timeout but not write timeout. I think we should add a write(data, timeout) method in IOUtils that assumes it the underlying FileChannel is non-blocking.

      Attachments

        1. HADOOP-2346.patch
          11 kB
          Raghu Angadi
        2. HADOOP-2346.patch
          11 kB
          Raghu Angadi
        3. HADOOP-2346.patch
          36 kB
          Raghu Angadi
        4. HADOOP-2346.patch
          36 kB
          Raghu Angadi
        5. HADOOP-2346.patch
          36 kB
          Raghu Angadi
        6. HADOOP-2346.patch
          45 kB
          Raghu Angadi
        7. HADOOP-2346.patch
          45 kB
          Raghu Angadi
        8. HADOOP-2346.patch
          45 kB
          Raghu Angadi
        9. HADOOP-2346.patch
          45 kB
          Raghu Angadi
        10. HADOOP-2346.patch
          46 kB
          Raghu Angadi
        11. HADOOP-2346.patch
          46 kB
          Raghu Angadi
        12. HADOOP-2346.patch
          47 kB
          Raghu Angadi
        13. HADOOP-2346.patch
          48 kB
          Raghu Angadi
        14. HADOOP-2346.patch
          48 kB
          Raghu Angadi
        15. HADOOP-2346.patch
          48 kB
          Raghu Angadi
        16. HADOOP-2346.patch
          48 kB
          Raghu Angadi

        Issue Links

          Activity

            People

              rangadi Raghu Angadi
              rangadi Raghu Angadi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: