Return-Path: X-Original-To: apmail-streams-dev-archive@minotaur.apache.org Delivered-To: apmail-streams-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 32D56CBCE for ; Tue, 18 Nov 2014 16:57:55 +0000 (UTC) Received: (qmail 35188 invoked by uid 500); 18 Nov 2014 16:57:55 -0000 Delivered-To: apmail-streams-dev-archive@streams.apache.org Received: (qmail 35144 invoked by uid 500); 18 Nov 2014 16:57:55 -0000 Mailing-List: contact dev-help@streams.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@streams.incubator.apache.org Delivered-To: mailing list dev@streams.incubator.apache.org Received: (qmail 35132 invoked by uid 99); 18 Nov 2014 16:57:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Nov 2014 16:57:55 +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, 18 Nov 2014 16:57:54 +0000 Received: (qmail 32799 invoked by uid 99); 18 Nov 2014 16:57:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Nov 2014 16:57:34 +0000 Date: Tue, 18 Nov 2014 16:57:34 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@streams.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (STREAMS-225) Streams need to remove any of their JMX beans on shutdown/cleanup 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/STREAMS-225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14216417#comment-14216417 ] ASF GitHub Bot commented on STREAMS-225: ---------------------------------------- Github user rbnks commented on a diff in the pull request: https://github.com/apache/incubator-streams/pull/134#discussion_r20519649 --- Diff: streams-runtimes/streams-runtime-local/src/main/java/org/apache/streams/local/builders/LocalStreamBuilder.java --- @@ -276,6 +283,14 @@ protected void shutdown(Map> streamsTasks) throws Inte } } + private void clearJMXBeans() { + try { + ComponentUtils.removeAllMBeansOfDomain("org.apache.streams.local"); --- End diff -- This might not work correctly. If two streams are running on the same JVM, this will clear out both streams JMXbeans. > Streams need to remove any of their JMX beans on shutdown/cleanup > ----------------------------------------------------------------- > > Key: STREAMS-225 > URL: https://issues.apache.org/jira/browse/STREAMS-225 > Project: Streams > Issue Type: Bug > Reporter: Robert Douglas > > As a Streams developer, I should be able to run multiple Streams in a serial fashion without issue. Currently, JMX beans (which are used for monitoring the Stream's activity) are not cleared when a Stream is shutdown. If a new Stream is started afterwards (without a JVM restart) then there is a collision in the naming of the JMX beans which causes an exception which shuts down the subsequent Stream. Need to build in functionality to clear all JMX beans on shutdown. -- This message was sent by Atlassian JIRA (v6.3.4#6332)