Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id BFBEB180630 for ; Tue, 2 Jan 2018 16:28:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id AFCCE160C26; Tue, 2 Jan 2018 15:28:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 01838160C1B for ; Tue, 2 Jan 2018 16:28:03 +0100 (CET) Received: (qmail 41771 invoked by uid 500); 2 Jan 2018 15:28:03 -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 41762 invoked by uid 99); 2 Jan 2018 15:28:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jan 2018 15:28:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A12341A0207 for ; Tue, 2 Jan 2018 15:28:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id c7vEvfm6fLsY for ; Tue, 2 Jan 2018 15:28:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 2568A5F295 for ; Tue, 2 Jan 2018 15:28:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6BAA8E0044 for ; Tue, 2 Jan 2018 15:28:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 23411212F8 for ; Tue, 2 Jan 2018 15:28:00 +0000 (UTC) Date: Tue, 2 Jan 2018 15:28:00 +0000 (UTC) From: =?utf-8?Q?=C3=96nder_Sezgin_=28JIRA=29?= To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-12108) StreamCache file is removed before wireTap ends in a splitter wireTap combination route MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 02 Jan 2018 15:28:05 -0000 [ https://issues.apache.org/jira/browse/CAMEL-12108?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D163= 08216#comment-16308216 ]=20 =C3=96nder Sezgin commented on CAMEL-12108: -------------------------------------- Thanks Bas Claessen, PR submitted on behalf of you.=20 > StreamCache file is removed before wireTap ends in a splitter wireTap com= bination route > -------------------------------------------------------------------------= -------------- > > Key: CAMEL-12108 > URL: https://issues.apache.org/jira/browse/CAMEL-12108 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.20.1 > Reporter: Bas Claessen > Priority: Minor > Attachments: CAMEL-12108-WireTapProcessor.patch, TestSplitWireTap= .zip > > > When combining the splitter and wireTap functionality an org.apache.camel= .RuntimeCamelException (Cannot reset stream from file) will be thrown when: > 1. a spooled StreamCache body is created in the wireTap route > 2. the splitter route ends before the wireTap route > The splitter will create an Exchange.STREAM_CACHE_UNIT_OF_WORK property t= o hold the StreamCaches that will be created by the children of the splitte= r. > When doing a wireTap in the splitter route, the property will be copied t= o the wireTap route (when using the wireTap defaults). > StreamCaches created in the wireTap route will now be added to the proper= ty as well and will be closed when the splitter route ends. > A possible workaround can be to create the wireTap route without copying = the original exchange. > However I think it is better to remove the Exchange.STREAM_CACHE_UNIT_OF_= WORK property in the org.apache.camel.processor.WireTapProcessor configureE= xchange method. > I attached a maven project with a test to demonstrate the issue. -- This message was sent by Atlassian JIRA (v6.4.14#64029)