Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-1961

NPE from query after query cancellation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: IDX - Indexes
    • Labels:
      None

      Description

      After query cancellation, NPE trace from a query:

      org.apache.hyracks.api.exceptions.HyracksDataException: java.util.concurrent.ExecutionException: org.apache.hyracks.api.exceptions.HyracksDataException: java.lang.NullPointerException
      at org.apache.hyracks.api.exceptions.HyracksDataException.create(HyracksDataException.java:50) ~[hyracks-api-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.hyracks.control.common.utils.ExceptionUtils.setNodeIds(ExceptionUtils.java:62) ~[hyracks-control-common-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.hyracks.control.nc.Task.run(Task.java:330) ~[hyracks-control-nc-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_121]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_121]
      at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
      Caused by: java.util.concurrent.ExecutionException: org.apache.hyracks.api.exceptions.HyracksDataException: java.lang.NullPointerException
      at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_121]
      at java.util.concurrent.FutureTask.get(FutureTask.java:192) [?:1.8.0_121]
      at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable.runInParallel(SuperActivityOperatorNodePushable.java:222) ~[hyracks-api-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable.initialize(SuperActivityOperatorNodePushable.java:84) ~[hyracks-api-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.hyracks.control.nc.Task.run(Task.java:273) ~[hyracks-control-nc-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      ... 3 more
      Caused by: org.apache.hyracks.api.exceptions.HyracksDataException: java.lang.NullPointerException
      at org.apache.hyracks.storage.am.common.dataflow.IndexSearchOperatorNodePushable.close(IndexSearchOperatorNodePushable.java:214) ~[hyracks-storage-am-common-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.hyracks.algebricks.runtime.operators.std.EmptyTupleSourceRuntimeFactory$1.close(EmptyTupleSourceRuntimeFactory.java:60) ~[algebricks-runtime-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.hyracks.algebricks.runtime.operators.meta.AlgebricksMetaOperatorDescriptor$1.initialize(AlgebricksMetaOperatorDescriptor.java:106) ~[algebricks-runtime-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable.lambda$initialize$0(SuperActivityOperatorNodePushable.java:86) ~[hyracks-api-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable.lambda$runInParallel$2(SuperActivityOperatorNodePushable.java:216) ~[hyracks-api-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_121]
      ... 3 more
      Caused by: java.lang.NullPointerException
      at org.apache.hyracks.storage.am.lsm.common.impls.LSMIndexSearchCursor.close(LSMIndexSearchCursor.java:148) ~[hyracks-storage-am-lsm-common-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.hyracks.storage.am.lsm.btree.impls.LSMBTreeSearchCursor.close(LSMBTreeSearchCursor.java:97) ~[hyracks-storage-am-lsm-btree-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.hyracks.storage.am.common.dataflow.IndexSearchOperatorNodePushable.close(IndexSearchOperatorNodePushable.java:211) ~[hyracks-storage-am-common-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.hyracks.algebricks.runtime.operators.std.EmptyTupleSourceRuntimeFactory$1.close(EmptyTupleSourceRuntimeFactory.java:60) ~[algebricks-runtime-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.hyracks.algebricks.runtime.operators.meta.AlgebricksMetaOperatorDescriptor$1.initialize(AlgebricksMetaOperatorDescriptor.java:106) ~[algebricks-runtime-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable.lambda$initialize$0(SuperActivityOperatorNodePushable.java:86) ~[hyracks-api-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at org.apache.hyracks.api.rewriter.runtime.SuperActivityOperatorNodePushable.lambda$runInParallel$2(SuperActivityOperatorNodePushable.java:216) ~[hyracks-api-0.3.1-SNAPSHOT.jar:0.3.1-SNAPSHOT]
      at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_121]
      

        Attachments

          Activity

            People

            • Assignee:
              mhubail Murtadha Makki Al Hubail
              Reporter:
              mhubail Murtadha Makki Al Hubail
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: