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-17648: multiThreaded=true: changed queue implementation #3155

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dsmiley
Copy link
Contributor

@dsmiley dsmiley commented Feb 2, 2025

from unlimited to 1000 max, after which the caller thread will execute.
Didn't need the RejectedExecutionException avoidance hack anymore; Lucene 9.12 has it.

https://issues.apache.org/jira/browse/SOLR-17648

 from unlimited to 1000 max, after which the caller thread will execute.
 Didn't need the RejectedExecutionException avoidance hack anymore; Lucene 9.12 has it.
@dsmiley dsmiley requested a review from chatman February 2, 2025 05:04
}
},
new LinkedBlockingQueue<>(
EnvUtils.getPropertyAsInteger("solr.searcherCollector.queueSize", 1000)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs docs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we don't need to document obscure settings (I think this is). If you think it should be documented, let me know where it should be. If this queue size is exceeded, the outcome is still a working system but the performance will be somewhat less than what it otherwise would be. FWIW 1000 feels about right to me. I reviewed the code in Lucene 9.12 that cleverly uses the parent thread.

I plan to change this property to be "solr.search.multiThreaded.queueSize" so as to have a category after solr. -- see https://cwiki.apache.org/confluence/display/SOLR/System+property+naming+structure

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

Successfully merging this pull request may close these issues.

2 participants