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 C0FDF18991 for ; Wed, 7 Oct 2015 05:41:26 +0000 (UTC) Received: (qmail 97317 invoked by uid 500); 7 Oct 2015 05:41:26 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 97279 invoked by uid 500); 7 Oct 2015 05:41:26 -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 97270 invoked by uid 99); 7 Oct 2015 05:41:26 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2015 05:41:26 +0000 Date: Wed, 7 Oct 2015 05:41:26 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-9196) CLONE - DefaultShutdownStrategy shutdown timeout of 0 will never timeout and go in negative time 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-9196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14946304#comment-14946304 ] Claus Ibsen commented on CAMEL-9196: ------------------------------------ I added an extra check for validating that in this case the timeout must be > 0 > CLONE - DefaultShutdownStrategy shutdown timeout of 0 will never timeout and go in negative time > ------------------------------------------------------------------------------------------------ > > Key: CAMEL-9196 > URL: https://issues.apache.org/jira/browse/CAMEL-9196 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.15.3 > Reporter: Mykola Pavluchynskyi > Assignee: Claus Ibsen > Priority: Minor > Fix For: 2.17.0, 2.16.1 > > > A timeout of 0 won't timeout in the instant, the time will go negative. > camelcontext.stopRoute(routeId, 0, TimeUnit.SECONDS, false); > [org.apache.camel.impl.DefaultShutdownStrategy] : Waiting as there are still 3 inflight and pending exchanges to complete, timeout in -1 seconds. > [org.apache.camel.impl.DefaultShutdownStrategy] : Waiting as there are still 3 inflight and pending exchanges to complete, timeout in -2 seconds. > [org.apache.camel.impl.DefaultShutdownStrategy] : Waiting as there are still 3 inflight and pending exchanges to complete, timeout in -3 seconds. > Found a post related to it there : http://camel.465427.n5.nabble.com/Forcefully-shutting-down-routes-td5722447.html > Original issue was marked as fixed so I create clone: > I'm using 2.15.3 and still have the same promlem - negative timeout and don't stop. > 12:48:59,864 INFO [org.apache.camel.impl.DefaultShutdownStrategy] (Camel (interprocCamelContext) thread #56904 - timer://InteractiveAppRetryProcessor) Waiting as there are still 1 inflight and pending exchanges to complete, timeout in -25754 seconds. Inflights per route: [InteractiveProcessor_Retry_4 = 1] > 12:49:00,865 INFO [org.apache.camel.impl.DefaultShutdownStrategy] (Camel (interprocCamelContext) thread #56904 - timer://InteractiveAppRetryProcessor) Waiting as there are still 1 inflight and pending exchanges to complete, timeout in -25755 seconds. Inflights per route: [InteractiveProcessor_Retry_4 = 1] > 12:49:01,865 INFO [org.apache.camel.impl.DefaultShutdownStrategy] (Camel (interprocCamelContext) thread #56904 - timer://InteractiveAppRetryProcessor) Waiting as there are still 1 inflight and pending exchanges to complete, timeout in -25756 seconds. Inflights per route: [InteractiveProcessor_Retry_4 = 1] > 12:49:02,866 INFO [org.apache.camel.impl.DefaultShutdownStrategy] (Camel (interprocCamelContext) thread #56904 - timer://InteractiveAppRetryProcessor) Waiting as there are still 1 inflight and pending exchanges to complete, timeout in -25757 seconds. Inflights per route: [InteractiveProcessor_Retry_4 = 1] > 12:49:03,866 INFO [org.apache.camel.impl.DefaultShutdownStrategy] (Camel (interprocCamelContext) thread #56904 - timer://InteractiveAppRetryProcessor) Waiting as there are still 1 inflight and pending exchanges to complete, timeout in -25758 seconds. Inflights per route: [InteractiveProcessor_Retry_4 = 1] > 12:49:04,866 INFO [org.apache.camel.impl.DefaultShutdownStrategy] (Camel (interprocCamelContext) thread #56904 - timer://InteractiveAppRetryProcessor) Waiting as there are still 1 inflight and pending exchanges to complete, timeout in -25759 seconds. Inflights per route: [InteractiveProcessor_Retry_4 = 1] > 12:49:05,867 INFO [org.apache.camel.impl.DefaultShutdownStrategy] (Camel (interprocCamelContext) thread #56904 - timer://InteractiveAppRetryProcessor) Waiting as there are still 1 inflight and pending exchanges to complete, timeout in -25760 seconds. Inflights per route: [InteractiveProcessor_Retry_4 = 1] > When using hawtio it simply hangs when I try to view properties of Camel Contexts > I am using camel with activemq, but there are no inflight messages in activemq... -- This message was sent by Atlassian JIRA (v6.3.4#6332)