[
https://issues.apache.org/jira/browse/SOLR-7344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14510004#comment-14510004
]
Hrishikesh Gadre commented on SOLR-7344:
----------------------------------------
[[email protected]] FYI. Actually the forwarding request can be considered as a
special type of scatter/gather query and hence would perfectly fit my earlier
design. Please take a look at the following code
https://github.com/apache/lucene-solr/blob/trunk/solr/core/src/java/org/apache/solr/servlet/SolrDispatchFilter.java#L711
It is using base_url property (similar to other server-side querying code). The
original request would block on a thread in the external endpoint and the
forwarded request would be executed on a thread belonging to internal
thread-pool. So there is no chance of deadlock as such.
> Use two thread pools, one for internal requests and one for external, to
> avoid distributed deadlock and decrease the number of threads that need to be
> created.
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SOLR-7344
> URL: https://issues.apache.org/jira/browse/SOLR-7344
> Project: Solr
> Issue Type: Improvement
> Components: SolrCloud
> Reporter: Mark Miller
> Attachments: SOLR-7344.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]