Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-7146

Query failing with NPE when ZK queue is enabled

    XMLWordPrintableJSON

Details

    Description

       

      >> Query: alter system reset all;
       SYSTEM ERROR: NullPointerException
      Please, refer to logs for more information.
      [Error Id: ec4b9c66-9f5c-4736-acf3-605f84ea0226 on drill80:31010]
       java.sql.SQLException: SYSTEM ERROR: NullPointerException
      Please, refer to logs for more information.
      [Error Id: ec4b9c66-9f5c-4736-acf3-605f84ea0226 on drill80:31010]
       at org.apache.drill.jdbc.impl.DrillCursor.nextRowInternally(DrillCursor.java:535)
       at org.apache.drill.jdbc.impl.DrillCursor.loadInitialSchema(DrillCursor.java:607)
       at org.apache.drill.jdbc.impl.DrillResultSetImpl.execute(DrillResultSetImpl.java:1278)
       at org.apache.drill.jdbc.impl.DrillResultSetImpl.execute(DrillResultSetImpl.java:58)
       at oadd.org.apache.calcite.avatica.AvaticaConnection$1.execute(AvaticaConnection.java:667)
       at org.apache.drill.jdbc.impl.DrillMetaImpl.prepareAndExecute(DrillMetaImpl.java:1107)
       at org.apache.drill.jdbc.impl.DrillMetaImpl.prepareAndExecute(DrillMetaImpl.java:1118)
       at oadd.org.apache.calcite.avatica.AvaticaConnection.prepareAndExecuteInternal(AvaticaConnection.java:675)
       at org.apache.drill.jdbc.impl.DrillConnectionImpl.prepareAndExecuteInternal(DrillConnectionImpl.java:200)
       at oadd.org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:156)
       at oadd.org.apache.calcite.avatica.AvaticaStatement.execute(AvaticaStatement.java:217)
       at org.apache.drill.test.framework.Utils.execSQL(Utils.java:917)
       at org.apache.drill.test.framework.TestDriver.setup(TestDriver.java:632)
       at org.apache.drill.test.framework.TestDriver.runTests(TestDriver.java:152)
       at org.apache.drill.test.framework.TestDriver.main(TestDriver.java:94)
       Caused by: oadd.org.apache.drill.common.exceptions.UserRemoteException: SYSTEM ERROR: NullPointerException
      Please, refer to logs for more information.
      [Error Id: ec4b9c66-9f5c-4736-acf3-605f84ea0226 on drill80:31010]
       at oadd.org.apache.drill.exec.rpc.user.QueryResultHandler.resultArrived(QueryResultHandler.java:123)
       at oadd.org.apache.drill.exec.rpc.user.UserClient.handle(UserClient.java:422)
       at oadd.org.apache.drill.exec.rpc.user.UserClient.handle(UserClient.java:96)
       at oadd.org.apache.drill.exec.rpc.RpcBus$InboundHandler.decode(RpcBus.java:273)
       at oadd.org.apache.drill.exec.rpc.RpcBus$InboundHandler.decode(RpcBus.java:243)
       at oadd.io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:88)
       at oadd.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356)
       at oadd.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
       at oadd.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335)
       at oadd.io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:287)
       at oadd.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356)
       at oadd.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
       at oadd.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335)
       at oadd.io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
       at oadd.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356)
       at oadd.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
       at oadd.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335)
       at oadd.io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:312)
       at oadd.io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:286)
       at oadd.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356)
       at oadd.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
       at oadd.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335)
       at oadd.io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
       at oadd.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356)
       at oadd.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
       at oadd.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335)
       at oadd.io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)
       at oadd.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356)
       at oadd.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)
       at oadd.io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)
       at oadd.io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
       at oadd.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
       at oadd.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
       at oadd.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
       at oadd.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
       at oadd.io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131)
       at java.lang.Thread.run(Thread.java:748)
       Caused by: java.lang.Exception: Unexpected exception during fragment initialization: null
       at org.apache.drill.exec.work.foreman.Foreman.run(Foreman.java:299)
       at .......(:0)
       Caused by: java.lang.NullPointerException: 
       at org.apache.drill.exec.planner.fragment.QueueQueryParallelizer.lambda$getMemory$0(QueueQueryParallelizer.java:59)
       at org.apache.drill.exec.planner.fragment.Materializer$IndexedFragmentNode.addAllocation(Materializer.java:199)
       at org.apache.drill.exec.planner.fragment.Materializer.visitStore(Materializer.java:93)
       at org.apache.drill.exec.planner.fragment.Materializer.visitStore(Materializer.java:40)
       at org.apache.drill.exec.physical.base.AbstractPhysicalVisitor.visitScreen(AbstractPhysicalVisitor.java:197)
       at org.apache.drill.exec.physical.config.Screen.accept(Screen.java:98)
       at org.apache.drill.exec.planner.fragment.SimpleParallelizer.generateWorkUnit(SimpleParallelizer.java:321)
       at org.apache.drill.exec.planner.fragment.SimpleParallelizer.generateWorkUnit(SimpleParallelizer.java:213)
       at org.apache.drill.exec.work.foreman.Foreman.getQueryWorkUnit(Foreman.java:570)
       at org.apache.drill.exec.work.foreman.Foreman.runPhysicalPlan(Foreman.java:410)
       at org.apache.drill.exec.work.foreman.Foreman.runSQL(Foreman.java:588)
       at org.apache.drill.exec.work.foreman.Foreman.run(Foreman.java:271)
       ... 1 more
       java.sql.SQLException: SYSTEM ERROR: NullPointerException
      

       

      Attachments

        Issue Links

          Activity

            People

              hanu.ncr Hanumath Rao Maduri
              shamirwasia Sorabh Hamirwasia
              Sorabh Hamirwasia Sorabh Hamirwasia
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: