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

Query succeeds, but throws 'failure while running fragment error' with MongoDB storage plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Storage - MongoDB
    • None

    Description

      Running the following query on Mongo DB storage plugin.
      The query ran fine but it is throwing failure at the end.

      0: jdbc:drill:zk=local> select sum(pop) from zipcodes where city='CHICAGO';
      ------------

      EXPR$0

      ------------

      2452177

      Query failed: Failure while running fragment. Attempted to close accountor with 2 buffer(s) still allocatedfor QueryId: 0df76bf3-a4f1-4d18-a791-035a268b3c2a, MajorFragmentId: 0, MinorFragmentId: 0.

      Total 1 allocation(s) of byte size(s): 32768, at stack location:
      org.apache.drill.exec.memory.TopLevelAllocator$ChildAllocator.buffer(TopLevelAllocator.java:182)
      org.apache.drill.exec.vector.BigIntVector.allocateNewSafe(BigIntVector.java:137)
      org.apache.drill.exec.vector.BigIntVector.allocateNew(BigIntVector.java:123)
      org.apache.drill.exec.vector.NullableBigIntVector.allocateNew(NullableBigIntVector.java:162)
      org.apache.drill.exec.test.generated.CopierGen29.copyRecords(CopierTemplate2.java:45)
      org.apache.drill.exec.physical.impl.svremover.RemovingRecordBatch.doWork(RemovingRecordBatch.java:96)
      org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:79)
      org.apache.drill.exec.physical.impl.svremover.RemovingRecordBatch.innerNext(RemovingRecordBatch.java:90)
      org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:95)
      org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:117)
      org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:75)
      org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:65)
      org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:44)
      org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.innerNext(ProjectRecordBatch.java:127)
      org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:95)
      org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:117)
      org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:75)
      org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:65)
      org.apache.drill.exec.physical.impl.aggregate.StreamingAggBatch.innerNext(StreamingAggBatch.java:87)
      org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:95)
      org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:117)
      org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:59)
      org.apache.drill.exec.physical.impl.ScreenCreator$ScreenRoot.innerNext(ScreenCreator.java:97)
      org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:49)
      org.apache.drill.exec.work.fragment.FragmentExecutor.run(FragmentExecutor.java:104)
      org.apache.drill.exec.work.WorkManager$RunnableWrapper.run(WorkManager.java:250)
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      java.lang.Thread.run(Thread.java:744)

      Total 1 allocation(s) of byte size(s): 4096, at stack location:
      org.apache.drill.exec.memory.TopLevelAllocator$ChildAllocator.buffer(TopLevelAllocator.java:182)
      org.apache.drill.exec.vector.UInt1Vector.allocateNewSafe(UInt1Vector.java:137)
      org.apache.drill.exec.vector.UInt1Vector.allocateNew(UInt1Vector.java:123)
      org.apache.drill.exec.vector.NullableBigIntVector.allocateNew(NullableBigIntVector.java:163)
      org.apache.drill.exec.test.generated.CopierGen29.copyRecords(CopierTemplate2.java:45)
      org.apache.drill.exec.physical.impl.svremover.RemovingRecordBatch.doWork(RemovingRecordBatch.java:96)
      org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:79)
      org.apache.drill.exec.physical.impl.svremover.RemovingRecordBatch.innerNext(RemovingRecordBatch.java:90)
      org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:95)
      org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:117)
      org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:75)
      org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:65)
      org.apache.drill.exec.record.AbstractSingleRecordBatch.innerNext(AbstractSingleRecordBatch.java:44)
      org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.innerNext(ProjectRecordBatch.java:127)
      org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:95)
      org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:117)
      org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:75)
      org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:65)
      org.apache.drill.exec.physical.impl.aggregate.StreamingAggBatch.innerNext(StreamingAggBatch.java:87)
      org.apache.drill.exec.record.AbstractRecordBatch.next(AbstractRecordBatch.java:95)
      org.apache.drill.exec.physical.impl.validate.IteratorValidatorBatchIterator.next(IteratorValidatorBatchIterator.java:117)
      org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:59)
      org.apache.drill.exec.physical.impl.ScreenCreator$ScreenRoot.innerNext(ScreenCreator.java:97)
      org.apache.drill.exec.physical.impl.BaseRootExec.next(BaseRootExec.java:49)
      org.apache.drill.exec.work.fragment.FragmentExecutor.run(FragmentExecutor.java:104)
      org.apache.drill.exec.work.WorkManager$RunnableWrapper.run(WorkManager.java:250)
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      java.lang.Thread.run(Thread.java:744)
      [2f2a926a-8778-42a9-8fa5-062831003f21]

      java.lang.RuntimeException: java.sql.SQLException: Failure while trying to get next result batch.
      at sqlline.SqlLine$IncrementalRows.hasNext(SqlLine.java:2514)
      at sqlline.SqlLine$TableOutputFormat.print(SqlLine.java:2148)
      at sqlline.SqlLine.print(SqlLine.java:1809)
      at sqlline.SqlLine$Commands.execute(SqlLine.java:3766)
      at sqlline.SqlLine$Commands.sql(SqlLine.java:3663)
      at sqlline.SqlLine.dispatch(SqlLine.java:889)
      at sqlline.SqlLine.begin(SqlLine.java:763)
      at sqlline.SqlLine.start(SqlLine.java:498)
      at sqlline.SqlLine.main(SqlLine.java:460)
      0: jdbc:drill:zk=local>

      Attachments

        Activity

          People

            Unassigned Unassigned
            Neeraja Neeraja
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: