ifesdjeen commented on code in PR #2318:
URL: https://github.com/apache/cassandra/pull/2318#discussion_r1205060068


##########
src/java/org/apache/cassandra/utils/MBeanWrapper.java:
##########
@@ -36,23 +42,46 @@
  */
 public interface MBeanWrapper
 {
-    static final Logger logger = LoggerFactory.getLogger(MBeanWrapper.class);
+    Logger logger = LoggerFactory.getLogger(MBeanWrapper.class);
 
-    static final MBeanWrapper instance = create();
+    MBeanWrapper instance = create();
 
     static MBeanWrapper create()
+    {
+        // If we're running in the in-jvm dtest environment, always use the 
delegating
+        // mbean wrapper even if we start off with no-op, so it can be 
switched later
+        if (DTEST_IS_IN_JVM_DTEST.getBoolean())
+        {
+            return new DelegatingMbeanWrapper(getmBeanWrapper());
+        }
+
+        return getmBeanWrapper();
+    }
+
+    static MBeanWrapper getmBeanWrapper()

Review Comment:
   one more nit: `mBean` vs `MBean` in all other cases in this class. 



-- 
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