You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Valentin Tsvetkov (JIRA)" <ji...@apache.org> on 2017/04/14 09:15:41 UTC

[jira] [Commented] (CAMEL-11151) Double release of netty buffer

    [ https://issues.apache.org/jira/browse/CAMEL-11151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15968818#comment-15968818 ] 

Valentin Tsvetkov commented on CAMEL-11151:
-------------------------------------------

I clone camel repository and can't find any test for netty-http4 and netty4 thats try to work with large content and test behavior of disableStreamCache=true, that seems not good.

> Double release of netty buffer
> ------------------------------
>
>                 Key: CAMEL-11151
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11151
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-netty4-http
>    Affects Versions: 2.18.3
>            Reporter: Valentin Tsvetkov
>
> I try to make simple proxy application with netty4-http component to transfer http request with large content.
> Example
>                 from(String.format("netty4-http:http://0.0.0.0:%d?httpMethodRestrict=GET,HEAD,POST,PUT,DELETE,TRACE,OPTIONS,CONNECT,PATCH&chunkedMaxContentLength=100000000&disableStreamCache=true", 8081))
>                         .toD("netty4-http:http://somehost:8080/?bridgeEndpoint=true&throwExceptionOnFailure=false&useRelativePath=true").end();
> So if i use &disableStreamCache=true option then i get 
> [Camel Thread #3 - NettyClientTCPWorker] WARN io.netty.util.concurrent.DefaultPromise - An exception was thrown by org.apache.camel.component.netty4.NettyProducer$ChannelConnectedListener.operationComplete()
> io.netty.util.IllegalReferenceCountException: refCnt: 0, decrement: 1
> 	at io.netty.buffer.AbstractReferenceCountedByteBuf.release0(AbstractReferenceCountedByteBuf.java:101)
> 	at io.netty.buffer.AbstractReferenceCountedByteBuf.release(AbstractReferenceCountedByteBuf.java:89)
> 	at io.netty.handler.codec.http.DefaultFullHttpRequest.release(DefaultFullHttpRequest.java:102)
> 	at io.netty.util.ReferenceCountUtil.release(ReferenceCountUtil.java:84)
> If i does not use  &disableStreamCache=true, all works fine. But for large content i get heap space error.
> There are several resolved bugs in camel and netty4 that seems to be related
> https://issues.apache.org/jira/browse/CAMEL-10409
> and https://issues.apache.org/jira/browse/CAMEL-7638



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)