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

IPC client bug may cause rpc call hang

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.18.3, 0.19.0, 0.19.1, 0.19.2, 0.20.0, 0.20.1
    • 0.20.2
    • ipc
    • None
    • Reviewed
    • Correct synchronization error in IPC where handler thread could hang if request reader got an error.

    Description

      I can reproduce some rpc call hang bug when connection thread of ipc client receives response for outstanding call.

      The stacks when hang occurs (TaskTracker):

      Waiting on org.apache.hadoop.ipc.Client$Call@1c3cbb4b
      Stack:
      java.lang.Object.wait(Native Method)
      java.lang.Object.wait(Object.java:485)
      org.apache.hadoop.ipc.Client.call(Client.java:691)
      org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:216)
      org.apache.hadoop.mapred.$Proxy4.heartbeat(Unknown Source)
      org.apache.hadoop.mapred.TaskTracker.transmitHeartBeat(TaskTracker.java:1250)
      org.apache.hadoop.mapred.TaskTracker.offerService(TaskTracker.java:1082)
      org.apache.hadoop.mapred.TaskTracker.run(TaskTracker.java:1785)
      org.apache.hadoop.mapred.TaskTracker.main(TaskTracker.java:2796)

      Attachments

        1. hadoop-6498.patch
          0.8 kB
          Ruyue Ma
        2. hadoop-6498-branch-0.20
          0.8 kB
          Ruyue Ma
        3. hangClient.patch
          3 kB
          Hairong Kuang
        4. hangClient-0.20.patch
          4 kB
          Hairong Kuang
        5. hangClient1.patch
          4 kB
          Hairong Kuang

        Issue Links

          Activity

            People

              mry.maillist Ruyue Ma
              mry.maillist Ruyue Ma
              Votes:
              0 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: