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

NPE in RpcServer$Call.wrapWithSasl()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      I saw this in a log file, not sure whether it is important to fix or not:

      2016-01-09 01:30:58,905 WARN  [FifoRpcScheduler.handler1-thread-25] ipc.RpcServer: FifoRpcScheduler.handler1-thread-25: caught: java.lang.NullPointerException
        at org.apache.hadoop.hbase.ipc.RpcServer$Call.wrapWithSasl(RpcServer.java:412)
        at org.apache.hadoop.hbase.ipc.RpcServer$Call.setResponse(RpcServer.java:395)
        at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:128)
        at org.apache.hadoop.hbase.ipc.FifoRpcScheduler$1.run(FifoRpcScheduler.java:74)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
      

      This is 0.98 based code base corresponding to:

            synchronized (connection.saslServer) {
              token = connection.saslServer.wrap(responseBytes, 0, responseBytes.length);
            }
      

      I believe the saslserver was set to null earlier by disposeSasl() because Connection is closing.

      Attachments

        Activity

          People

            Unassigned Unassigned
            enis Enis Soztutar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: