Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lucene 9.8-Snapshot] Suggest phase search failures #98738

Closed
benwtrent opened this issue Aug 22, 2023 · 1 comment
Closed

[Lucene 9.8-Snapshot] Suggest phase search failures #98738

benwtrent opened this issue Aug 22, 2023 · 1 comment
Labels
:Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team

Comments

@benwtrent
Copy link
Member

From what I can tell: apache/lucene#12380 is the cause.

I am still digging into the deeper reason. It seems like we shouldn't call get but instead should call finish()

Replicate:

./gradlew ':rest-api-spec:yamlRestTest' --tests "org.elasticsearch.test.rest.ClientYamlTestSuiteIT.test {yaml=suggest/30_context/Skip duplicates with contexts should work}"
Trace
 1> [2023-08-22T18:25:26,962][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [test-cluster-0] fatal error in thread [elasticsearch[test-cluster-0][search][T#1]], exiting java.lang.AssertionError
  1>    at [email protected]/org.apache.lucene.search.suggest.document.TopSuggestDocsCollector.get(TopSuggestDocsCollector.java:146)
  1>    at [email protected]/org.elasticsearch.search.suggest.completion.CompletionSuggester.innerExecute(CompletionSuggester.java:50)
  1>    at [email protected]/org.elasticsearch.search.suggest.completion.CompletionSuggester.innerExecute(CompletionSuggester.java:30)
  1>    at [email protected]/org.elasticsearch.search.suggest.Suggester.execute(Suggester.java:42)
  1>    at [email protected]/org.elasticsearch.search.suggest.SuggestPhase.execute(SuggestPhase.java:42)
  1>    at [email protected]/org.elasticsearch.search.query.QueryPhase.executeQuery(QueryPhase.java:116)
  1>    at [email protected]/org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:63)
  1>    at [email protected]/org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:515)
  1>    at [email protected]/org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:667)
  1>    at [email protected]/org.elasticsearch.search.SearchService.lambda$executeQueryPhase$2(SearchService.java:540)
  1>    at [email protected]/org.elasticsearch.action.ActionRunnable$2.accept(ActionRunnable.java:51)
  1>    at [email protected]/org.elasticsearch.action.ActionRunnable$2.accept(ActionRunnable.java:48)
  1>    at [email protected]/org.elasticsearch.action.ActionRunnable$3.doRun(ActionRunnable.java:73)
  1>    at [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
  1>    at [email protected]/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:33)
  1>    at [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:983)
  1>    at [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26)
  1>    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
  1>    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
  1>    at java.base/java.lang.Thread.run(Thread.java:1623)
@benwtrent benwtrent added the :Search/Search Search-related issues that do not fall into other categories label Aug 22, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team
Projects
None yet
Development

No branches or pull requests

2 participants