question

dmngaya avatar image
dmngaya asked Erick Ramirez answered

Exception during facet.field:scan

Hi,

We have created solr queries with facet and with Time Allowed 60s but we are getting these errors:

ERROR [RemoteMessageServer query worker - 20] 2020-08-26 16:43:45,430 SolrException.java:187 - org.apache.solr.common.SolrException: Exception during facet.field: scan The request took too long to iterate over terms. Duration of 60000ms exceeded time allowed of 60000ms, TermsEnum=org.apache.lucene.codecs.blocktree.SegmentTermsEnum@14ed8ec2

Caused by: org.apache.lucene.index.ExitableDirectoryReader$ExitingReaderException: The request took too long to iterate over terms. Duration of 60000ms exceeded time allowed of 60000ms, TermsEnum=org.apache.lucene.codecs.blocktree.SegmentTermsEnum@14ed8ec2
at org.apache.lucene.index.ExitableDirectoryReader$ExitableTermsEnum.checkAndThrow(ExitableDirectoryReader.java:173)
at org.apache.lucene.index.ExitableDirectoryReader$ExitableTermsEnum.<init>(ExitableDirectoryReader.java:163)
at org.apache.lucene.index.ExitableDirectoryReader$ExitableTerms.iterator(ExitableDirectoryReader.java:147)
  1. How can we limit the number of nodes retried when the timeAllowed is exceeded ?

We tried testing with a facet limit of 5,000 instead of 20,000 and it was actually a bit worse

Thanks for your advices.

dsesearch
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

It is a real challenge troubleshooting this kind of issue in a Q&A forum format.

Please log a ticket with DataStax Support so one of our engineers can work with you directly. Cheers!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.