camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valentin Tsvetkov (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-11151) Double release of netty buffer
Date Fri, 14 Apr 2017 09:16:41 GMT

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

Valentin Tsvetkov edited comment on CAMEL-11151 at 4/14/17 9:15 AM:
--------------------------------------------------------------------

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


was (Author: tsvetval):
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)

Mime
View raw message