You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Stephan Ewen (Jira)" <ji...@apache.org> on 2020/02/23 17:09:00 UTC

[jira] [Created] (FLINK-16246) Exclude "SdkMBeanRegistrySupport" from dynamically loaded AWS connectors

Stephan Ewen created FLINK-16246:
------------------------------------

             Summary: Exclude "SdkMBeanRegistrySupport" from dynamically loaded AWS connectors
                 Key: FLINK-16246
                 URL: https://issues.apache.org/jira/browse/FLINK-16246
             Project: Flink
          Issue Type: Bug
          Components: Connectors / Kinesis
            Reporter: Stephan Ewen
            Assignee: Stephan Ewen
             Fix For: 1.10.1, 1.11.0


The AWS SDK always registers a {{MetricAdminMBean}} at the JMX MBean Server.
This allows users to turn on / off more detailed metrics via the JMX admin interface.

However, this registered bean keeps the user code classloader alive and thus causes a class leak.

Excluding the {{com.amazonaws.jmx.SdkMBeanRegistrySupport}} class from the connectors disables the default registration thus preventing the class leak. It should only disable that JMX metric admin interface and still allow users to manually configure/activate metrics for the AWS SDK.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)