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

SocketIOWithTimeout does not handle thread interruption

    XMLWordPrintableJSON

Details

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

    Description

      If a thread is waiting in SocketIOWithTimeout.select() for IO and is interrupted by another thread, select() returns zero. But current implementation does not check if the thread is interrupted and goes back to waiting. But it should check if the thread is interrupted.

      In this case, I am thinking of throwing InterruptedIOException http://java.sun.com/j2se/1.5.0/docs/api/java/io/InterruptedIOException.html.

      Attachments

        1. HADOOP-3008.patch
          4 kB
          Raghu Angadi
        2. HADOOP-3008.patch
          4 kB
          Raghu Angadi
        3. HADOOP-3008.patch
          4 kB
          Raghu Angadi
        4. HADOOP-3008.patch
          4 kB
          Raghu Angadi

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: