You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Julie Tibshirani (Jira)" <ji...@apache.org> on 2020/11/20 03:18:00 UTC

[jira] [Resolved] (LUCENE-9592) TestVectorUtil can fail with assertion error

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

Julie Tibshirani resolved LUCENE-9592.
--------------------------------------
    Resolution: Fixed

> TestVectorUtil can fail with assertion error
> --------------------------------------------
>
>                 Key: LUCENE-9592
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9592
>             Project: Lucene - Core
>          Issue Type: Test
>            Reporter: Julie Tibshirani
>            Priority: Minor
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> Example failure:
> {code:java}
>  java.lang.AssertionError: expected:<35.699527740478516> but was:<35.69953918457031>java.lang.AssertionError: expected:<35.699527740478516> but was:<35.69953918457031> at __randomizedtesting.SeedInfo.seed([305701410F76FAD0:4797D77886281D68]:0) at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.failNotEquals(Assert.java:835) at org.junit.Assert.assertEquals(Assert.java:555) at org.junit.Assert.assertEquals(Assert.java:685) at org.apache.lucene.util.TestVectorUtil.testSelfDotProduct(TestVectorUtil.java:28) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567){code}
> Reproduce line: 
> {code:java}
> gradlew test --tests TestVectorUtil.testSelfDotProduct -Dtests.seed=305701410F76FAD0 -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=ar-AE -Dtests.timezone=SystemV/MST7 -Dtests.asserts=true -Dtests.file.encoding=UTF-8 {code}
> Perhaps the vector utility methods should work with doubles instead of floats to avoid loss of precision.



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