[ https://issues.apache.org/jira/browse/LUCENE-9334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17338591#comment-17338591 ]
Dawid Weiss commented on LUCENE-9334: ------------------------------------- TestPerFieldConsistency has been failing on and off recently and it seems relevant to this issue. Those failures are not really reproducible but they do look similar. Is this something known? Should it be annotated as awaiting a fix? {code} Build: https://jenkins.thetaphi.de/job/Lucene-main-Linux/30142/ Java: 64bit/jdk-15 -XX:-UseCompressedOops -XX:+UseSerialGC 1 tests failed. FAILED: org.apache.lucene.document.TestPerFieldConsistency.testDocWithMissingSchemaOptionsThrowsError Error Message: java.lang.AssertionError: expected:<4> but was:<0> Stack Trace: java.lang.AssertionError: expected:<4> but was:<0> at __randomizedtesting.SeedInfo.seed([589A8C303E4D61F4:20DDC33151E81C85]:0) at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.failNotEquals(Assert.java:835) at org.junit.Assert.assertEquals(Assert.java:647) at org.junit.Assert.assertEquals(Assert.java:633) at org.apache.lucene.document.TestPerFieldConsistency.testDocWithMissingSchemaOptionsThrowsError(TestPerFieldConsistency.java:172) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) {code} > Require consistency between data-structures on a per-field basis > ---------------------------------------------------------------- > > Key: LUCENE-9334 > URL: https://issues.apache.org/jira/browse/LUCENE-9334 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Adrien Grand > Priority: Blocker > Fix For: main (9.0) > > Time Spent: 14.5h > Remaining Estimate: 0h > > Follow-up of > https://lists.apache.org/thread.html/r747de568afd7502008c45783b74cc3aeb31dab8aa60fcafaf65d5431%40%3Cdev.lucene.apache.org%3E. > We would like to start requiring consitency across data-structures on a > per-field basis in order to make it easier to do the right thing by default: > range queries can run faster if doc values are enabled, sorted queries can > run faster if points by indexed, etc. > This would be a big change, so it should be rolled out in a major. > Strict validation is tricky to implement, but we should still implement > best-effort validation: > - Documents all use the same data-structures, e.g. it is illegal for a > document to only enable points and another document to only enable doc values, > - When possible, check whether values are consistent too. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org