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 8211310AEB for ; Mon, 14 Oct 2013 13:33:43 +0000 (UTC) Received: (qmail 43690 invoked by uid 500); 14 Oct 2013 13:33:43 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 43659 invoked by uid 500); 14 Oct 2013 13:33:42 -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 43646 invoked by uid 99); 14 Oct 2013 13:33:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Oct 2013 13:33:41 +0000 Date: Mon, 14 Oct 2013 13:33:41 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CAMEL-6862) DefaultTimeoutMap - Should use start/stop to schedule the task, and cancel the task 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-6862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-6862. -------------------------------- Resolution: Fixed > DefaultTimeoutMap - Should use start/stop to schedule the task, and cancel the task > ----------------------------------------------------------------------------------- > > Key: CAMEL-6862 > URL: https://issues.apache.org/jira/browse/CAMEL-6862 > Project: Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 2.11.0, 2.12.0 > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Priority: Minor > Fix For: 2.11.3, 2.12.2, 2.13.0 > > > DefaultTimeoutMap schedules the task in constructor, we should do that in start instead. And in stop we should cancel the task. > Otherwise it can lead to situations where stopping the timeout cannot happen cleanly > {code} > 2013-10-14 13:53:25,287 | INFO | sample.response] | DefaultExecutorServiceManager | ? ? | 134 - org.apache.camel.camel-core - 2.12.0.redhat-610054 | Waited 2.001 seconds for ExecutorService: org.apache.camel.util.concurrent.SizedScheduledExecutorService@b370e4f[JmsReplyManagerTimeoutChecker[queue.sample.response]] to terminate... > 2013-10-14 13:53:27,289 | INFO | sample.response] | DefaultExecutorServiceManager | ? ? | 134 - org.apache.camel.camel-core - 2.12.0.redhat-610054 | Waited 4.003 seconds for ExecutorService: org.apache.camel.util.concurrent.SizedScheduledExecutorService@b370e4f[JmsReplyManagerTimeoutChecker[queue.sample.response]] to terminate... > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)