Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 665FA1011C for ; Sun, 4 Jan 2015 23:57:43 +0000 (UTC) Received: (qmail 9776 invoked by uid 500); 4 Jan 2015 23:57:39 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 9746 invoked by uid 500); 4 Jan 2015 23:57:39 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 9736 invoked by uid 99); 4 Jan 2015 23:57:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Jan 2015 23:57:39 +0000 Date: Sun, 4 Jan 2015 23:57:39 +0000 (UTC) From: "Jacques Nadeau (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-1859) IllegalReferenceCountException in the decoder inside Netty MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-1859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Nadeau updated DRILL-1859: ---------------------------------- Fix Version/s: 0.8.0 Assignee: Yuliya Feldman > IllegalReferenceCountException in the decoder inside Netty > ---------------------------------------------------------- > > Key: DRILL-1859 > URL: https://issues.apache.org/jira/browse/DRILL-1859 > Project: Apache Drill > Issue Type: Bug > Components: Execution - RPC > Affects Versions: 0.7.0 > Reporter: Aman Sinha > Assignee: Yuliya Feldman > Fix For: 0.8.0 > > Attachments: decoder_err.txt > > > 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. > {code} > 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 > {code} > Here's partial output from the logs: (will attach full error log). > {code} > 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] > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)