Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-19708

Avoid NPE when the RPC listener's accept channel is closed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.98.24
    • Fix Version/s: 1.3.2, 1.4.1, 1.2.7
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Rare NPE when the listener's accept channel is closed. We serialize access to related state to avoid a previously fixed related NPE and need to do the same for acceptChannel. Seen in a 0.98 deploy but I think applicable to later code lines. Let me check.

      Exception in thread "MetadataRpcServer.handler=191,queue=0,port=60020" java.lang.NullPointerException
      at org.apache.hadoop.hbase.ipc.RpcServer$Listener.getAddress(RpcServer.java:858)
      at org.apache.hadoop.hbase.ipc.RpcServer.getListenerAddress(RpcServer.java:2338)
      at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:140)
      at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:133)
      at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:108)
      at java.lang.Thread.run(Thread.java:745)

        Attachments

        1. HBASE-19708-branch-1.patch
          2 kB
          Andrew Kyle Purtell
        2. HBASE-19708-branch-1.patch
          3 kB
          Andrew Kyle Purtell

          Activity

            People

            • Assignee:
              apurtell Andrew Kyle Purtell
              Reporter:
              apurtell Andrew Kyle Purtell
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: