Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8224A10755 for ; Tue, 29 Oct 2013 07:18:57 +0000 (UTC) Received: (qmail 89735 invoked by uid 500); 29 Oct 2013 07:18:56 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 89479 invoked by uid 500); 29 Oct 2013 07:18:56 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 89464 invoked by uid 99); 29 Oct 2013 07:18:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Oct 2013 07:18:53 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of alexins@mail.ru does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Oct 2013 07:18:48 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Vb3ZL-0005X1-C6 for users@camel.apache.org; Tue, 29 Oct 2013 00:18:27 -0700 Date: Tue, 29 Oct 2013 00:18:27 -0700 (PDT) From: alexey-s To: users@camel.apache.org Message-ID: <1383031107369-5742342.post@n5.nabble.com> In-Reply-To: <1347639627909-5719385.post@n5.nabble.com> References: <1347616011018-5719356.post@n5.nabble.com> <1347621529418-5719361.post@n5.nabble.com> <1347639627909-5719385.post@n5.nabble.com> Subject: RE: Cannot stop inputstream during ftp transfer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I do not understand what the problem is. Within a few years used to. For 20 seconds, the system waits for the successful outcome of the process. After 20 seconds, the process has not stopped. Aborting closing Endpoint. Component throws an exception I/O or NPE. Rollback transaction and original file. At this point the process of safely (emergency) stops. I have a process reads from the ftp site a lot of large files. I use RoutePolicy. Put time routeStopGracePeriod = 10 seconds. The operation stops for 17 seconds. 15:50:00,001 | DefaultShutdownStrategy | Starting to graceful shutdown 1 routes (timeout 10000 milliseconds) 15:50:10,002 | DefaultShutdownStrategy | Timeout occurred. Now forcing the routes to be shutdown now. 15:50:10,002 | DefaultShutdownStrategy | Interrupted while waiting during graceful shutdown, will force shutdown now. 15:50:10,003 | DefaultShutdownStrategy | Route: exchangeDocReadRoute shutdown complete, was consuming from: Endpoint[ftp:...] 15:50:17,614 | DefaultShutdownStrategy | Graceful shutdown of 1 routes completed in 17 seconds 15:50:17,614 | BlueprintCamelContext | Route: exchangeDocReadRoute is stopped, was consuming from: Endpoint[ftp:...] 15:50:18,587 | FtpConsumer | Error processing file RemoteFile[...] -- View this message in context: http://camel.465427.n5.nabble.com/Cannot-stop-inputstream-during-ftp-transfer-tp5719356p5742342.html Sent from the Camel - Users mailing list archive at Nabble.com.