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

Solr error in CircleCI #153

Closed
hectorcorrea opened this issue Feb 10, 2022 · 1 comment
Closed

Solr error in CircleCI #153

hectorcorrea opened this issue Feb 10, 2022 · 1 comment

Comments

@hectorcorrea
Copy link
Member

CircleCI is logging a Solr error that seems to point to the way we have configured search suggestions in Solr.

Below is the error that CircleCI logs (raw log output straight from CircleCI)

2022-02-10 20:24:17.116 ERROR (searcherExecutor-14-thread-1-processing-n:192.168.128.3:8983_solr x:pdc_discovery-core-test_shard1_replica_n1 c:pdc_discovery-core-test s:shard1 r:core_node2) [c:pdc_discovery-core-test s:shard1 r:core_node2 x:pdc_discovery-core-test_shard1_replica_n1] o.a.s.h.c.SuggestComponent Exception in building suggester index for: mySuggester => java.lang.IllegalArgumentException: input automaton is too large: 1001
	at org.apache.lucene.util.automaton.Operations.topoSortStatesRecurse(Operations.java:1298)
java.lang.IllegalArgumentException: input automaton is too large: 1001
	at org.apache.lucene.util.automaton.Operations.topoSortStatesRecurse(Operations.java:1298) ~[?:?]
	at org.apache.lucene.util.automaton.Operations.topoSortStatesRecurse(Operations.java:1306) ~[?:?]

       [this line repeats 1000 times]

	at org.apache.lucene.util.automaton.Operations.topoSortStatesRecurse(Operations.java:1306) ~[?:?]
at org.apache.lucene.util.automaton.Operations.topoSortStatesRecurse(Operations.java:1306) ~[?:?]
	at org.apache.lucene.util.automaton.Operations.topoSortStatesRecurse(Operations.java:1306) ~[?:?]
	at org.apache.lucene.util.automaton.Operations.topoSortStates(Operations.java:1275) ~[?:?]
	at org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester.replaceSep(AnalyzingSuggester.java:292) ~[?:?]
	at org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester.toAutomaton(AnalyzingSuggester.java:854) ~[?:?]
	at org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester.build(AnalyzingSuggester.java:430) ~[?:?]
	at org.apache.lucene.search.suggest.Lookup.build(Lookup.java:190) ~[?:?]
	at org.apache.solr.spelling.suggest.SolrSuggester.build(SolrSuggester.java:181) ~[?:?]
	at org.apache.solr.handler.component.SuggestComponent$SuggesterListener.buildSuggesterIndex(SuggestComponent.java:537) ~[?:?]
	at org.apache.solr.handler.component.SuggestComponent$SuggesterListener.newSearcher(SuggestComponent.java:524) ~[?:?]
	at org.apache.solr.core.SolrCore.lambda$getSearcher$19(SolrCore.java:2378) ~[?:?]
	at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:?]
	at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:210) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:?]
	at java.lang.Thread.run(Unknown Source) [?:?]

If I comment the copyField directives in our schema.xml the error goes away:

  <copyField source="*_tsim" dest="suggest" />
  <copyField source="*_tesim" dest="suggest" />
  <copyField source="*_ssim" dest="suggest" />
  <copyField source="*_si" dest="suggest" />

We should review what is it in these configuration that is causing the problem.

@hectorcorrea
Copy link
Member Author

Fixed by @bess in PR #163

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant