Remove OpenJDK log warning

patch by jasobrown; reviewed by Jeff Jirsa for CASSANDRA-13916
This commit is contained in:
Jason Brown 2017-12-02 05:51:23 -08:00
parent 58aebd1767
commit 69052a0559
2 changed files with 2 additions and 7 deletions

View File

@ -165,6 +165,7 @@
3.11.2
* Remove OpenJDK log warning (CASSANDRA-13916)
* Prevent compaction strategies from looping indefinitely (CASSANDRA-14079)
* Cache disk boundaries (CASSANDRA-13215)
* Add asm jar to build.xml for maven builds (CASSANDRA-11193)

View File

@ -195,13 +195,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");
}