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

NPE on PCAP Batch Reader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.17.0
    • 1.17.0
    • None
    • Important

    Description

      PcapBatchReader throws NPE with certain files.

      {{apache drill> select * from dfs.test.`test1.pcap`;
      Error: EXECUTION_ERROR ERROR: null

      Read failed for reader PcapBatchReader
      Fragment 0:0

      [Error Id: 24f85130-5a1c-4478-b52e-780e537d8ffb on localhost:31010]

      (java.lang.NullPointerException) null
      org.apache.drill.exec.store.pcap.PcapBatchReader.addDataToTable():409
      org.apache.drill.exec.store.pcap.PcapBatchReader.parseNextPacket():337
      org.apache.drill.exec.store.pcap.PcapBatchReader.next():194
      org.apache.drill.exec.physical.impl.scan.framework.ShimBatchReader.next():132
      org.apache.drill.exec.physical.impl.scan.ReaderState.readBatch():414
      org.apache.drill.exec.physical.impl.scan.ReaderState.next():371
      org.apache.drill.exec.physical.impl.scan.ScanOperatorExec.nextAction():263
      org.apache.drill.exec.physical.impl.scan.ScanOperatorExec.next():234
      org.apache.drill.exec.physical.impl.protocol.OperatorDriver.doNext():196
      org.apache.drill.exec.physical.impl.protocol.OperatorDriver.start():174
      org.apache.drill.exec.physical.impl.protocol.OperatorDriver.next():124
      org.apache.drill.exec.physical.impl.protocol.OperatorRecordBatch.next():150
      org.apache.drill.exec.record.AbstractRecordBatch.next():128
      org.apache.drill.exec.record.AbstractRecordBatch.next():118
      org.apache.drill.exec.record.AbstractUnaryRecordBatch.innerNext():65
      org.apache.drill.exec.physical.impl.project.ProjectRecordBatch.innerNext():144
      org.apache.drill.exec.record.AbstractRecordBatch.next():188
      org.apache.drill.exec.physical.impl.BaseRootExec.next():105
      org.apache.drill.exec.physical.impl.ScreenCreator$ScreenRoot.innerNext():83
      org.apache.drill.exec.physical.impl.BaseRootExec.next():95
      org.apache.drill.exec.work.fragment.FragmentExecutor$1.run():296
      org.apache.drill.exec.work.fragment.FragmentExecutor$1.run():283
      java.security.AccessController.doPrivileged():-2
      javax.security.auth.Subject.doAs():422
      org.apache.hadoop.security.UserGroupInformation.doAs():1730
      org.apache.drill.exec.work.fragment.FragmentExecutor.run():283
      org.apache.drill.common.SelfCleaningRunnable.run():38
      java.util.concurrent.ThreadPoolExecutor.runWorker():1149
      java.util.concurrent.ThreadPoolExecutor$Worker.run():624
      java.lang.Thread.run():748 (state=,code=0)}}

      Attachments

        1. test2.pcap
          42 kB
          Charles Givre
        2. test1.pcap
          10.82 MB
          Charles Givre

        Issue Links

          Activity

            People

              cgivre Charles Givre
              cgivre Charles Givre
              Vova Vysotskyi Vova Vysotskyi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: