Hanifi Gunes created DRILL-1956:
-----------------------------------

             Summary: Drillbit does not terminate gracefully reporting a memory 
leak on shutdown
                 Key: DRILL-1956
                 URL: https://issues.apache.org/jira/browse/DRILL-1956
             Project: Apache Drill
          Issue Type: Bug
            Reporter: Hanifi Gunes


Shutting down drillbit seems to hang a while and report the following.

{code}
Exception in thread "ShutdownHook" java.lang.IllegalStateException: Attempted 
to close accountor with 12 buffer(s) still allocated.


        Total 12 allocation(s) of byte size(s): 224, 224, 224, 224, 224, 224, 
224, 224, 224, 224, 224, 224, at stack location:
                
org.apache.drill.exec.memory.TopLevelAllocator.buffer(TopLevelAllocator.java:93)
                
org.apache.drill.exec.rpc.ProtobufLengthDecoder.decode(ProtobufLengthDecoder.java:83)
                
org.apache.drill.exec.rpc.user.UserProtobufLengthDecoder.decode(UserProtobufLengthDecoder.java:37)
                
io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:247)
                
io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:147)
                
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
                
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
                
io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
                
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
                
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
                
io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)
                
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130)
                
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
                
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
                
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
                io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
                
io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
                java.lang.Thread.run(Thread.java:745)

        at org.apache.drill.exec.memory.Accountor.close(Accountor.java:355)
        at 
org.apache.drill.exec.memory.TopLevelAllocator.close(TopLevelAllocator.java:152)
        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.exec.server.Drillbit$ShutdownThread.run(Drillbit.java:193)

{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to