mirror of https://github.com/apache/cassandra
Remove OpenJDK log warning
patch by Benjamin Lerer; reviewed by Brandon Williams for CASSANDRA-15563
This commit is contained in:
parent
457422ac1a
commit
b5f52bfd0e
|
|
@ -1,4 +1,5 @@
|
|||
2.2.20
|
||||
* Remove OpenJDK log warning (CASSANDRA-15563)
|
||||
* Fix the histogram merge of the table metrics (CASSANDRA-16259)
|
||||
|
||||
2.2.19
|
||||
|
|
|
|||
|
|
@ -170,13 +170,7 @@ public class StartupChecks
|
|||
logger.warn("32bit JVM detected. It is recommended to run Cassandra on a 64bit JVM for better performance.");
|
||||
|
||||
String javaVmName = System.getProperty("java.vm.name");
|
||||
if (javaVmName.contains("OpenJDK"))
|
||||
{
|
||||
// There is essentially no QA done on OpenJDK builds, and
|
||||
// clusters running OpenJDK have seen many heap and load issues.
|
||||
logger.warn("OpenJDK is not recommended. Please upgrade to the newest Oracle Java release");
|
||||
}
|
||||
else if (!javaVmName.contains("HotSpot"))
|
||||
if (!(javaVmName.contains("HotSpot") || javaVmName.contains("OpenJDK")))
|
||||
{
|
||||
logger.warn("Non-Oracle JVM detected. Some features, such as immediate unmap of compacted SSTables, may not work as intended");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue