Remove OpenJDK log warning

patch by Benjamin Lerer; reviewed by Brandon Williams for CASSANDRA-15563
This commit is contained in:
Benjamin Lerer 2021-01-08 13:16:48 +01:00
parent 457422ac1a
commit b5f52bfd0e
2 changed files with 2 additions and 7 deletions

View File

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

View File

@ -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");
}