Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-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 A76E1C28C for ; Fri, 27 Apr 2012 07:00:19 +0000 (UTC) Received: (qmail 47872 invoked by uid 500); 27 Apr 2012 07:00:19 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 47846 invoked by uid 500); 27 Apr 2012 07:00:19 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 47833 invoked by uid 99); 27 Apr 2012 07:00:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Apr 2012 07:00:19 +0000 X-ASF-Spam-Status: No, hits=-1998.7 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Apr 2012 07:00:17 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 176E7422EC0 for ; Fri, 27 Apr 2012 06:59:56 +0000 (UTC) Date: Fri, 27 Apr 2012 06:59:56 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: <1219726256.1732.1335509996097.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1686612136.5613.1335456256143.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (CAMEL-5225) camel-netty can't distinguish between Sharable and Unsharable codecs 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/CAMEL-5225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263408#comment-13263408 ] Claus Ibsen edited comment on CAMEL-5225 at 4/27/12 6:58 AM: ------------------------------------------------------------- camel-netty have been improved for Camel 2.10. And if you use decoders/encoders that cannot be shared with multiple consumers, then you need to enlist 2 in the registry etc. This is *not* a bug, but how its designed. You as the end user must configure the endpoints/components correctly. I have added your test to the source and it passes on trunk. was (Author: davsclaus): camel-netty have been improved for Camel 2.10. And if you use decoders/encoders that cannot be shared with multiple consumers, then you need to enlist 2 in the registry etc. I have added your test to the source and it passes on trunk. > camel-netty can't distinguish between Sharable and Unsharable codecs > -------------------------------------------------------------------- > > Key: CAMEL-5225 > URL: https://issues.apache.org/jira/browse/CAMEL-5225 > Project: Camel > Issue Type: Bug > Components: camel-netty > Affects Versions: 2.9.2 > Environment: ALL > Reporter: edge wang > Assignee: Claus Ibsen > Labels: netty > Fix For: 2.10.0 > > Attachments: UnsharableCodecsConflictsTest.java > > > Camel-netty uses general configuration model for referenced encoders/decoders for channel pipelines, see DefaultServerPipelineFactory. That is, create encoder/decoder objects at configuration parsing time and store them in a list, then use them when a pipeline is established. However, this will make encoder/decoder objects shared among different pipelines, that may cause data conflicts, when the encoder/decoder is not Sharable(has object status/not annotated as @Sharable), e.g. a LengthFieldBasedFrameDecoder. > Although we can avoid the problem by totally writing a new serverpipelinefactory for our apps, several problem still remains, please see detailed description and testcase for this bug at: > http://camel.465427.n5.nabble.com/camel-netty-bug-and-the-need-of-best-practice-for-creating-referenced-parameter-object-on-looking-up-td5627926.html -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira