Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-3767

Potential NPE in getActiveLogs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.0
    • Component/s: tserver
    • Labels:
      None

      Description

      null
      	java.lang.NullPointerException
      		at org.apache.accumulo.tserver.log.TabletServerLogger.getLogFile(TabletServerLogger.java:186)
      		at org.apache.accumulo.tserver.TabletServer$ThriftClientHandler.getActiveLogs(TabletServer.java:1718)
      		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      		at java.lang.reflect.Method.invoke(Method.java:497)
      		at org.apache.accumulo.core.trace.wrappers.RpcServerInvocationHandler.invoke(RpcServerInvocationHandler.java:46)
      		at org.apache.accumulo.server.rpc.RpcWrapper$1.invoke(RpcWrapper.java:47)
      		at com.sun.proxy.$Proxy20.getActiveLogs(Unknown Source)
      		at org.apache.accumulo.core.tabletserver.thrift.TabletClientService$Processor$getActiveLogs.getResult(TabletClientService.java:2930)
      		at org.apache.accumulo.core.tabletserver.thrift.TabletClientService$Processor$getActiveLogs.getResult(TabletClientService.java:2915)
      		at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
      		at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
      		at org.apache.accumulo.server.rpc.TimedProcessor.process(TimedProcessor.java:63)
      		at org.apache.thrift.server.AbstractNonblockingServer$FrameBuffer.invoke(AbstractNonblockingServer.java:516)
      		at org.apache.accumulo.server.rpc.CustomNonBlockingServer$1.run(CustomNonBlockingServer.java:78)
      		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      		at org.apache.accumulo.fate.util.LoggingRunnable.run(LoggingRunnable.java:35)
      		at java.lang.Thread.run(Thread.java:745)
      

      If the tserver doesn't have a currentLog yet, this will throw an NPE.

        Attachments

          Activity

            People

            • Assignee:
              elserj Josh Elser
              Reporter:
              elserj Josh Elser
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m