Hadoop Common
  1. Hadoop Common
  2. HADOOP-4924

Race condition in re-init of TaskTracker

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.18.3, 0.19.1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The taskReportServer is stopped in the TaskTracker.close() method in a thread. The race condition is:
      1) TaskTracker.close() is invoked - this starts a thread to stop the taskReportServer
      2) TaskTracker.initialize is invoked - this tries to create a new taskReportServer
      Assume that the thread started to stop the taskReportServer gets to start its work after (2) above. The thread will end up stopping the newly created taskReportServer.

      1. 4924.patch
        1 kB
        Devaraj Das

        Activity

        Devaraj Das created issue -
        Devaraj Das made changes -
        Field Original Value New Value
        Attachment 4924.patch [ 12396568 ]
        Devaraj Das made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Devaraj Das made changes -
        Resolution Fixed [ 1 ]
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Devaraj Das made changes -
        Fix Version/s 0.19.1 [ 12313473 ]
        Fix Version/s 0.20.0 [ 12313438 ]
        Devaraj Das made changes -
        Fix Version/s 0.20.0 [ 12313438 ]
        Devaraj Das made changes -
        Fix Version/s 0.18.3 [ 12313494 ]
        Nigel Daley made changes -
        Fix Version/s 0.20.0 [ 12313438 ]
        Nigel Daley made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Devaraj Das
            Reporter:
            Devaraj Das
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development