You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Chris M. Hostetter (Jira)" <ji...@apache.org> on 2019/10/07 23:03:00 UTC

[jira] [Resolved] (LUCENE-8991) disable java.util.HashMap assertions to avoid spurious vailures due to JDK-8205399

     [ https://issues.apache.org/jira/browse/LUCENE-8991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris M. Hostetter resolved LUCENE-8991.
----------------------------------------
    Resolution: Fixed

bq. So i'm going to revisit this change and fix common-build.xml to check for any java less then 12.

ant doesn't make it easy to do "less than" and java8's spec version was "1.8", so an integer comparison wasn't going to work anyway ... so i just added "9" and "1.8" to the conditional "or".

tested again using java11 and java12 on master *AND* using java8 on branch8x, both with and w/o the new {{-Dtests.asserts.hashmap=true}}

> disable java.util.HashMap assertions to avoid spurious vailures due to JDK-8205399
> ----------------------------------------------------------------------------------
>
>                 Key: LUCENE-8991
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8991
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Chris M. Hostetter
>            Assignee: Chris M. Hostetter
>            Priority: Major
>              Labels: Java10, Java11
>             Fix For: master (9.0), 8.3
>
>         Attachments: LUCENE-8991.patch, LUCENE-8991.patch
>
>
> An incredibly common class of jenkins failure (at least in Solr tests) stems from triggering assertion failures in java.util.HashMap -- evidently triggering bug JDK-8205399, first introduced in java-10, and fixed in java-12, but has never been backported to any java-10 or java-11 bug fix release...
>    https://bugs.openjdk.java.net/browse/JDK-8205399
> SOLR-13653 tracks how this bug can affect Solr users, but I think it would make sense to disable java.util.HashMap in our build system to reduce the confusing failures when users/jenkins runs tests, since there is nothing we can do to work around this when testing with java-11 (or java-10 on branch_8x)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org