cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Brown (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-13916) Remove OpenJDK log warning
Date Fri, 01 Dec 2017 13:48:00 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-13916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16274417#comment-16274417
] 

Jason Brown commented on CASSANDRA-13916:
-----------------------------------------

On trunk, the {{StartupCheck}} we have is:

{code}
            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"))
            {
                logger.warn("Non-Oracle JVM detected.  Some features, such as immediate unmap
of compacted SSTables, may not work as intended");
            }
{code}

If we get rid of the OpenJDK check, I suspect users will start seeing the next warning. OpenJDK's
{{-version}} prints this:

{code}
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
{code}

Should we get rid of both checks? Or just the first? I'm no OpenJDK expert, so I don't know
if that second warning applies. 


> Remove OpenJDK log warning
> --------------------------
>
>                 Key: CASSANDRA-13916
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13916
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Anthony Grasso
>            Priority: Minor
>              Labels: lhf
>
> The following warning message will appear in the logs when using OpenJDK
> {noformat}
> WARN  [main] ... OpenJDK is not recommended. Please upgrade to the newest Oracle Java
release
> {noformat}
> The above warning dates back to when OpenJDK 6 was released and there were some issues
in early releases of this version. The OpenJDK implementation is used as a reference for the
OracleJDK which means the implementations are very close. In addition, most users have moved
off Java 6 so we can probably remove this warning message.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message