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 DB8CD17D20 for ; Mon, 20 Apr 2015 21:28:59 +0000 (UTC) Received: (qmail 18114 invoked by uid 500); 20 Apr 2015 21:28:59 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 18082 invoked by uid 500); 20 Apr 2015 21:28:59 -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 18072 invoked by uid 99); 20 Apr 2015 21:28:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Apr 2015 21:28:59 +0000 Date: Mon, 20 Apr 2015 21:28:59 +0000 (UTC) From: "Sean Hsuan-Yi Chu (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-1825) select *, A, * from ... with limit operator causes IllegalStateException 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-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Hsuan-Yi Chu updated DRILL-1825: ------------------------------------- Component/s: Execution - Flow > select *, A, * from ... with limit operator causes IllegalStateException > ------------------------------------------------------------------------ > > Key: DRILL-1825 > URL: https://issues.apache.org/jira/browse/DRILL-1825 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Flow > Reporter: Sean Hsuan-Yi Chu > Assignee: Aman Sinha > Fix For: 0.8.0 > > Attachments: DRILL-1825.1.patch > > > select *, A, * from ... executes alright. But if limit operator is added, exception will be thrown as below: > org.apache.drill.exec.rpc.RpcException: Query failed. > at org.apache.drill.exec.rpc.user.QueryResultHandler.batchArrived(QueryResultHandler.java:79) > at org.apache.drill.exec.rpc.user.UserClient.handleReponse(UserClient.java:93) > at org.apache.drill.exec.rpc.BasicClientWithConnection.handle(BasicClientWithConnection.java:52) > at org.apache.drill.exec.rpc.BasicClientWithConnection.handle(BasicClientWithConnection.java:34) > at org.apache.drill.exec.rpc.RpcBus.handle(RpcBus.java:58) > at org.apache.drill.exec.rpc.RpcBus$InboundHandler.decode(RpcBus.java:194) > at org.apache.drill.exec.rpc.RpcBus$InboundHandler.decode(RpcBus.java:173) > at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) > at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) > at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) > at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) > at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) > at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) > at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:161) > at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) > at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) > at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86) > at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) > at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) > at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787) > at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130) > at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) > at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) > at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) > at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) > at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) > at java.lang.Thread.run(Thread.java:745) > java.lang.IllegalStateException: Failure while trying to close allocator: Child level allocators not closed. Stack trace: > java.lang.Thread.getStackTrace(Thread.java:1589) > org.apache.drill.exec.memory.TopLevelAllocator.getChildAllocator(TopLevelAllocator.java:115) > org.apache.drill.exec.ops.FragmentContext.(FragmentContext.java:111) > org.apache.drill.exec.work.foreman.Foreman.setupRootFragment(Foreman.java:534) > org.apache.drill.exec.work.foreman.Foreman.runPhysicalPlan(Foreman.java:306) > org.apache.drill.exec.work.foreman.Foreman.runSQL(Foreman.java:510) > org.apache.drill.exec.work.foreman.Foreman.run(Foreman.java:185) > org.apache.drill.exec.work.WorkManager$RunnableWrapper.run(WorkManager.java:249) > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > java.lang.Thread.run(Thread.java:745) > at org.apache.drill.exec.memory.TopLevelAllocator.close(TopLevelAllocator.java:148) > at org.apache.drill.exec.server.BootStrapContext.close(BootStrapContext.java:73) > at com.google.common.io.Closeables.close(Closeables.java:77) > at com.google.common.io.Closeables.closeQuietly(Closeables.java:108) > at org.apache.drill.exec.server.Drillbit.close(Drillbit.java:181) > at org.apache.drill.BaseTestQuery.closeClient(BaseTestQuery.java:125) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) > at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) > at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) > at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33) > at org.junit.runners.ParentRunner.run(ParentRunner.java:309) > at org.junit.runner.JUnitCore.run(JUnitCore.java:160) > at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74) > at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211) > at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134) -- This message was sent by Atlassian JIRA (v6.3.4#6332)