Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
None
-
IBM JDK 1.6 on Ubuntu
Description
com.sun.management.* classes are not available on IBM JDK's a relatively quick patch would be to just log a message and let StorageService go on even if the GCInspector does not start. With this, at least the released versions of cassandra compiled on sun jdk's will work on IBM JDK. Is this enough of a work around? (cassandra won't compile on IBM JDK unless GCInspector is re-written for both environments using reflection and platform specific classes)
Index: src/java/org/apache/cassandra/service/StorageService.java
===================================================================
— src/java/org/apache/cassandra/service/StorageService.java (revision 941276)
+++ src/java/org/apache/cassandra/service/StorageService.java (working copy)
@@ -341,7 +341,14 @@
}
DatabaseDescriptor.createAllDirectories();
- GCInspector.instance.start();
+ try
+ { + GCInspector.instance.start(); + }+ catch (Throwable t)
{ + logger_.info("GCInspector is disabled"); + }
+logger_.info("Starting up server gossip");
MessagingService.instance.listen(FBUtilities.getLocalAddress());