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

IllegalReferenceCountException in the decoder inside Netty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.8.0
    • Execution - RPC
    • None

    Description

      The following query does a LIMIT inside a subquery to force a UnionExchange and then does an ORDER-BY outside that will first re-distribute the data before sorting. It results in a DecoderException in netty.

      0: jdbc:drill:zk=local> alter session set `planner.slice_target` = 10;
      +------------+------------+
      |     ok     |  summary   |
      +------------+------------+
      | true       | planner.slice_target updated. |
      +------------+------------+
      0: jdbc:drill:zk=local> select t2.o_custkey from (select o_orderkey, o_custkey from cp.`tpch/orders.parquet` t1 group by o_orderkey, o_custkey limit 10) t2 order by t2.o_custkey;
      Query failed: Query failed: Failure while running fragment., refCnt: 0, decrement: 1 
      

      Here's partial output from the logs: (will attach full error log).

      io.netty.handler.codec.DecoderException: io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1
              io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) [netty-codec-4.0.24.Final.jar:4.0.24.Final]
              io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) [netty-transport-4.0.24.Final.jar:4.0.24.Final]
      

      Attachments

        1. 0002-DRILL-1859-Issue-with-killing-stopping-operator-proc.patch
          8 kB
          Yuliya Feldman
        2. 0001-DRILL-1926-Fix-for-back-pressure-logic.patch
          10 kB
          Yuliya Feldman
        3. decoder_err.txt
          4 kB
          Aman Sinha

        Issue Links

          Activity

            People

              yufeldman Yuliya Feldman
              amansinha100 Aman Sinha
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: