Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 279D1200BB3 for ; Wed, 28 Sep 2016 03:19:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 24AF3160AE5; Wed, 28 Sep 2016 01:19:17 +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 6E204160AE6 for ; Wed, 28 Sep 2016 03:19:16 +0200 (CEST) Received: (qmail 172 invoked by uid 500); 28 Sep 2016 01:19:15 -0000 Mailing-List: contact commits-help@iota.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@iota.incubator.apache.org Delivered-To: mailing list commits@iota.incubator.apache.org Received: (qmail 163 invoked by uid 99); 28 Sep 2016 01:19:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2016 01:19:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 4E674C203E for ; Wed, 28 Sep 2016 01:19:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.344 X-Spam-Level: X-Spam-Status: No, score=-4.344 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.124] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 6qEAZz0QHTNI for ; Wed, 28 Sep 2016 01:19:13 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 9A9B160D7C for ; Wed, 28 Sep 2016 01:19:12 +0000 (UTC) Received: (qmail 99920 invoked by uid 99); 28 Sep 2016 01:19:11 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2016 01:19:11 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 97487E1075; Wed, 28 Sep 2016 01:19:11 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tonyfaustini@apache.org To: commits@iota.incubator.apache.org Date: Wed, 28 Sep 2016 01:19:14 -0000 Message-Id: In-Reply-To: <21904e761a0b45659bfde365c0fe3e76@git.apache.org> References: <21904e761a0b45659bfde365c0fe3e76@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [04/10] incubator-iota git commit: Cleanup ORCHESTRATION_CACHE.orchestration_metadata when orchestration is terminated. archived-at: Wed, 28 Sep 2016 01:19:17 -0000 Cleanup ORCHESTRATION_CACHE.orchestration_metadata when orchestration is terminated. Project: http://git-wip-us.apache.org/repos/asf/incubator-iota/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-iota/commit/8da99385 Tree: http://git-wip-us.apache.org/repos/asf/incubator-iota/tree/8da99385 Diff: http://git-wip-us.apache.org/repos/asf/incubator-iota/diff/8da99385 Branch: refs/heads/master Commit: 8da99385e542479bf38e0c71c9ffbbe5e69540ef Parents: a37164e Author: Barbara Gomes Authored: Thu Jul 28 17:31:42 2016 -0700 Committer: Barbara Gomes Committed: Thu Jul 28 17:31:42 2016 -0700 ---------------------------------------------------------------------- fey-core/src/main/scala/org/apache/iota/fey/FeyCore.scala | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-iota/blob/8da99385/fey-core/src/main/scala/org/apache/iota/fey/FeyCore.scala ---------------------------------------------------------------------- diff --git a/fey-core/src/main/scala/org/apache/iota/fey/FeyCore.scala b/fey-core/src/main/scala/org/apache/iota/fey/FeyCore.scala index 4909a0b..8541ee4 100644 --- a/fey-core/src/main/scala/org/apache/iota/fey/FeyCore.scala +++ b/fey-core/src/main/scala/org/apache/iota/fey/FeyCore.scala @@ -101,6 +101,7 @@ protected class FeyCore extends Actor with ActorLogging{ monitoring_actor ! Monitor.TERMINATE(actorRef.path.toString, Utils.getTimestamp) log.info(s"TERMINATED ${actorRef.path.name}") FEY_CACHE.activeOrchestrations.remove(actorRef.path.name) + ORCHESTRATION_CACHE.orchestration_metadata.remove(actorRef.path.name) if(!FEY_CACHE.orchestrationsAwaitingTermination.isEmpty) { checkForOrchestrationWaitingForTermination(actorRef.path.name) }