[
https://issues.apache.org/jira/browse/ORC-436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16703904#comment-16703904
]
Owen O'Malley commented on ORC-436:
-----------------------------------
The Hadoop code is stupid and should be fixed, but fundamentally, the JVM was
wrong. The version string should not be "11". It should be "11.0.0". Now that
the JVM has added more digits to the version, the code is working again
although for the wrong reason. It works only because "11." > "1.7" in ASCII.
> A test failure of TestHadoopShimsPre2_7 with OpenJDK 11
> ---------------------------------------------------------
>
> Key: ORC-436
> URL: https://issues.apache.org/jira/browse/ORC-436
> Project: ORC
> Issue Type: Bug
> Reporter: Tsuyoshi Ozawa
> Priority: Major
>
> Reproduced a test failure Owen said in [Hadoop
> ML|http://mail-archives.apache.org/mod_mbox/hadoop-common-dev/201811.mbox/%3CCAHfHakGjmu2LuZ%2BU%3DF4-MVq7UL0vi4sPKno-ozBpvgig6SyWJg%40mail.gmail.com%3E?fbclid=IwAR18ZSzet969mHzrr9fk_q1a02c0T4qPiI-zZrglfYfI6BKytoIFsAqTj_M]
> {quote}
> $ java -version
> openjdk version "11" 2018-09-25
> OpenJDK Runtime Environment (build 11+24-Ubuntu-118.04)
> OpenJDK 64-Bit Server VM (build 11+24-Ubuntu-118.04, mixed mode, sharing)
> $ mvn test
> [INFO] Running org.apache.orc.impl.TestHadoopShimsPre2_7
> [ERROR] Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.207
> s <<< FAILURE! - in org.apache.orc.impl.TestHadoopShimsPre2_7
> [ERROR] testHadoopKeyProvider(org.apache.orc.impl.TestHadoopShimsPre2_7)
> Time elapsed: 0.101 s <<< ERROR!
> java.lang.ExceptionInInitializerError
> at
> org.apache.orc.impl.TestHadoopShimsPre2_7.testHadoopKeyProvider(TestHadoopShimsPre2_7.java:77)
> Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 2
> at
> org.apache.orc.impl.TestHadoopShimsPre2_7.testHadoopKeyProvider(TestHadoopShimsPre2_7.java:77)
> {quote}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)