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

Make RpcServer#processRequest logic more robust

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.4.0, 2.0.0
    • None
    • None
    • Reviewed

    Description

      Currently in RpcServer#processRequest, we will check whether the request header has parameters but missed handling the abnormal case, so if there's no param in the header, it will throw NPE like below:

      org.apache.hadoop.hbase.ipc.RemoteWithExtrasException(java.io.IOException): java.io.IOException
      	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2269)
      	at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:123)
      	at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:189)
      	at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:169)
      Caused by: java.lang.NullPointerException
      	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2211)
      

      Attachments

        1. HBASE-16670.patch
          0.9 kB
          Yu Li

        Activity

          People

            liyu Yu Li
            liyu Yu Li
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: