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 not deleting documents because maxwarmSearchers=2 #125

Closed
OkkeKlein opened this issue Jul 9, 2015 · 5 comments
Closed

Solr not deleting documents because maxwarmSearchers=2 #125

OkkeKlein opened this issue Jul 9, 2015 · 5 comments

Comments

@OkkeKlein
Copy link

While testing, the collector issued a lot of deletion commands to Solr in short period of time, so Solr didn't have enough time to warm a new seacher.

website: 2015-07-09 15:37:17 ERROR - website: Could not process document: http://www.XXX (Cannot index document batch to Solr.)
com.norconex.committer.core.CommitterException: Cannot index document batch to Solr.

Caused by: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://XXX: Error opening new searcher. exceeded limit of maxWarmingSearchers=2, try again later.

Under normal circumstances this would not happen, so this issue is just to inform.

@essiembre
Copy link
Contributor

Have to tried configuring your Solr Committer for retry?

<committer class="com.norconex.committer.solr.SolrCommitter">
  ... 
  <maxRetries>10</maxRetries>
  <maxRetryWait>60000</maxRetryWait>
</committer>

The above will try up to 10 times upon failure, waiting 1 minute between each attempts. This should give enough time to warmup.

@martinfou
Copy link

You might want to check this parameter in the config file.
commitDisabled Disable the sending of commit commands to the Solr Server.in the solr commiter config.

it might solve the problem since the Solr server will be in charge of the commits and not the solrj client.

here is a link to the feature request
Norconex/committer-solr#4

here is a link to the documentation of the tag name commitDisabled
http://www.norconex.com/collectors/committer-solr/configuration

@OkkeKlein
Copy link
Author

Will maxRetryWait work if I have 100+ batches that need deleting? Could be an option, but might also get messy.

Using Solr to handle the commits is an option, but there are scenario's where you want to control the opening of a new searcher.

Easiest way to prevent this is to add delay before committing next batch imo,

@essiembre
Copy link
Contributor

Good idea. I am marking this as a feature request to add a flag for a "minimum delay between commits".

@essiembre
Copy link
Contributor

Created a new feature request here: Norconex/committer-solr#6. Closing this one.

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

3 participants