Return-Path: X-Original-To: apmail-helix-commits-archive@minotaur.apache.org Delivered-To: apmail-helix-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4A746104B7 for ; Tue, 17 Mar 2015 21:45:04 +0000 (UTC) Received: (qmail 96775 invoked by uid 500); 17 Mar 2015 21:45:04 -0000 Delivered-To: apmail-helix-commits-archive@helix.apache.org Received: (qmail 96741 invoked by uid 500); 17 Mar 2015 21:45:04 -0000 Mailing-List: contact commits-help@helix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@helix.apache.org Delivered-To: mailing list commits@helix.apache.org Received: (qmail 96732 invoked by uid 99); 17 Mar 2015 21:45:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2015 21:45:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 17 Mar 2015 21:44:42 +0000 Received: (qmail 95304 invoked by uid 99); 17 Mar 2015 21:44:40 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2015 21:44:40 +0000 Date: Tue, 17 Mar 2015 21:44:40 +0000 (UTC) From: "Zhen Zhang (JIRA)" To: commits@helix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HELIX-537) org.apache.helix.task.TaskStateModel should have a shutdown method. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HELIX-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zhen Zhang updated HELIX-537: ----------------------------- Fix Version/s: 0.6.5 > org.apache.helix.task.TaskStateModel should have a shutdown method. > ------------------------------------------------------------------- > > Key: HELIX-537 > URL: https://issues.apache.org/jira/browse/HELIX-537 > Project: Apache Helix > Issue Type: Bug > Components: helix-core > Affects Versions: 0.6.3 > Reporter: Antony T Curtis > Priority: Blocker > Fix For: 0.6.5 > > > There should be a shutdown method to terminate the Timer and Executor which the org.apache.helix.task.TaskStateModel class creates. > ie. > {noformat} > public boolean shutdown(long timeout, TimeUnit unit) > throws InterruptedException > { > reset(); > _taskExecutor.shutdown(); > _timer.cancel(); > return _taskExecutor.awaitTermination(timeout, unit); > } > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)