smiklosovic commented on code in PR #3716:
URL: https://github.com/apache/cassandra/pull/3716#discussion_r1886759939


##########
src/java/org/apache/cassandra/utils/MBeanWrapper.java:
##########
@@ -82,6 +82,19 @@ static MBeanWrapper getMBeanWrapper()
 
     // Passing true for graceful will log exceptions instead of rethrowing them
     void registerMBean(Object obj, ObjectName mbeanName, OnException 
onException);
+
+    static void registerIfNotRegistered(Object obj, String mbeanName)
+    {
+        if (instance.isRegistered(mbeanName))
+        {
+            logger.warn("JMX Mbean already registered: {}", mbeanName);

Review Comment:
   MBean _is_ already registered



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to