streams-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (STREAMS-225) Streams need to remove any of their JMX beans on shutdown/cleanup
Date Wed, 19 Nov 2014 19:52:36 GMT


ASF GitHub Bot commented on STREAMS-225:

Github user steveblackmon commented on a diff in the pull request:
    --- Diff: streams-runtimes/streams-runtime-local/src/main/java/org/apache/streams/local/builders/
    @@ -276,6 +283,14 @@ protected void shutdown(Map<String, List<StreamsTask>>
streamsTasks) throws Inte
    +    private void clearJMXBeans() {
    +        try {
    +            ComponentUtils.removeAllMBeansOfDomain("org.apache.streams.local");
    --- End diff --
    maybe we need to assign a stream execution identifier at start-up, similar to datasift's

> Streams need to remove any of their JMX beans on shutdown/cleanup
> -----------------------------------------------------------------
>                 Key: STREAMS-225
>                 URL:
>             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

View raw message