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

Michael McCandless commented on LUCENE-9098:
--------------------------------------------

Indeed, this is still failing on current master 
(fb3ca8d000d6e5203a57625942b754f1d5757fac).  Looks like the test tries to make 
a random string that for sure will attempt to use too many states during 
determinize, yet this particular random string does not... here's the full 
failure:
{noformat}
[junit4:pickseed] Seed property 'tests.seed' already defined: CE3DF037C6D29401
   [junit4] <JUnit4> says Привет! Master seed: CE3DF037C6D29401
   [junit4] Executing 1 suite with 1 JVM.
   [junit4]
   [junit4] Started J0 PID(16174@localhost).
   [junit4] Suite: org.apache.lucene.search.TestFuzzyQuery
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestFuzzyQuery 
-Dtests.method=testErrorMessage -Dtests.seed=CE3DF037C6D29401 -Dtests.slow=true 
-Dtests.badapples=true -Dtests.locale=fr-GN -Dtests.timezon\
e=US/Pacific-New -Dtests.asserts=true -Dtests.file.encoding=ISO-8859-1
   [junit4] FAILURE 0.23s | TestFuzzyQuery.testErrorMessage <<<
   [junit4]    > Throwable #1: junit.framework.AssertionFailedError: Unexpected 
exception type, expected FuzzyTermsException but got 
java.lang.UnsupportedOperationException
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([CE3DF037C6D29401:1836CAB94FFCBD4F]:0)
   [junit4]    >        at 
org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2752)
   [junit4]    >        at 
org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2740)
   [junit4]    >        at 
org.apache.lucene.search.TestFuzzyQuery.testErrorMessage(TestFuzzyQuery.java:507)
   [junit4]    >        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   [junit4]    >        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   [junit4]    >        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   [junit4]    >        at 
java.base/java.lang.reflect.Method.invoke(Method.java:566)
   [junit4]    >        at java.base/java.lang.Thread.run(Thread.java:834)
   [junit4]    > Caused by: java.lang.UnsupportedOperationException
   [junit4]    >        at 
org.apache.lucene.search.TestFuzzyQuery$1.iterator(TestFuzzyQuery.java:511)
   [junit4]    >        at 
org.apache.lucene.index.Terms.intersect(Terms.java:70)
   [junit4]    >        at 
org.apache.lucene.search.FuzzyTermsEnum.getAutomatonEnum(FuzzyTermsEnum.java:205)
   [junit4]    >        at 
org.apache.lucene.search.FuzzyTermsEnum.bottomChanged(FuzzyTermsEnum.java:232)
   [junit4]    >        at 
org.apache.lucene.search.FuzzyTermsEnum.<init>(FuzzyTermsEnum.java:131)
   [junit4]    >        at 
org.apache.lucene.search.FuzzyQuery.getTermsEnum(FuzzyQuery.java:196)
   [junit4]    >        at 
org.apache.lucene.search.MultiTermQuery.getTermsEnum(MultiTermQuery.java:303)
   [junit4]    >        at 
org.apache.lucene.search.TestFuzzyQuery.lambda$testErrorMessage$6(TestFuzzyQuery.java:508)
   [junit4]    >        at 
org.apache.lucene.util.LuceneTestCase._expectThrows(LuceneTestCase.java:2870)
   [junit4]    >        at 
org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2745)
   [junit4]    >        ... 38 more
   [junit4]   2> NOTE: test params are: 
codec=DummyCompressingStoredFields(storedFieldsFormat=CompressingStoredFieldsFormat(compressionMode=DUMMY,
 chunkSize=5, maxDocsPerChunk=10, blockSize=8), termVectorsFormat=Co\
mpressingTermVectorsFormat(compressionMode=DUMMY, chunkSize=5, blockSize=8)), 
sim=Asserting(org.apache.lucene.search.similarities.AssertingSimilarity@3f2c18f9),
 locale=fr-GN, timezone=US/Pacific-New
   [junit4]   2> NOTE: Linux 4.4.0-165-generic amd64/Oracle Corporation 11.0.2 
(64-bit)/cpus=8,threads=1,free=477446800,total=536870912
   [junit4]   2> NOTE: All tests run in this JVM: [TestFuzzyQuery]
   [junit4] Completed [1/1 (1!)] in 0.45s, 1 test, 1 failure <<< 
FAILURES!{noformat}

> Report problematic term value when fuzzy query is too complex
> -------------------------------------------------------------
>
>                 Key: LUCENE-9098
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9098
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/search
>            Reporter: Mike Drob
>            Assignee: Mike Drob
>            Priority: Minor
>             Fix For: master (9.0)
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> This is the lucene compliment to SOLR-13190, when fuzzy query gets a term 
> that expands to too many states, we throw an exception but don't provide 
> insight on the problematic term. We should improve the error reporting.



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

Reply via email to