You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Kaminski, Adi" <Ad...@verint.com> on 2019/11/13 16:45:27 UTC
EmbeddedSolrServer thread-safety
Hi,
Can someone confirm that EmbeddedSolrServer calss is thread-safe (meaning from API perspective of add/delete/query operations by different threads)?
It's not written in any documentation, and we have some different answers from different forums.
The question is regarding Solr 7.6 binaries (in case was changed fixed in later versions).
Regards,
Adi
This electronic message may contain proprietary and confidential information of Verint Systems Inc., its affiliates and/or subsidiaries. The information is intended to be for the use of the individual(s) or entity(ies) named above. If you are not the intended recipient (or authorized to receive this e-mail for the intended recipient), you may not use, copy, disclose or distribute to anyone this message or any information contained in this message. If you have received this electronic message in error, please notify us by replying to this e-mail.
Re: EmbeddedSolrServer thread-safety
Posted by "Kaminski, Adi" <Ad...@verint.com>.
Hi Shawn,
Thanks a lot for the clarification !!
Regards,
Adi
Sent from Workspace ONE Boxer
On Nov 13, 2019 19:09, Shawn Heisey <ap...@elyograg.org> wrote:
On 11/13/2019 9:45 AM, Kaminski, Adi wrote:
> Can someone confirm that EmbeddedSolrServer calss is thread-safe (meaning from API perspective of add/delete/query operations by different threads)?
> It's not written in any documentation, and we have some different answers from different forums.
>
> The question is regarding Solr 7.6 binaries (in case was changed fixed in later versions).
EmbeddedSolrServer is Solr, without all the http-related stuff normally
provided by Jetty. Solr is thread-safe, and since the embedded server
runs exactly the same core code to provide an index as Solr does, I
would expect it to be thread-safe as well.
Note that we strongly recommend NOT using the embedded server in
production. Achieving redundancy with the embedded server would require
significant extra work, mostly to rebuild the remote capability that
Jetty gives to a full Solr install.
Thanks,
Shawn
This electronic message may contain proprietary and confidential information of Verint Systems Inc., its affiliates and/or subsidiaries. The information is intended to be for the use of the individual(s) or entity(ies) named above. If you are not the intended recipient (or authorized to receive this e-mail for the intended recipient), you may not use, copy, disclose or distribute to anyone this message or any information contained in this message. If you have received this electronic message in error, please notify us by replying to this e-mail.
Re: EmbeddedSolrServer thread-safety
Posted by Shawn Heisey <ap...@elyograg.org>.
On 11/13/2019 9:45 AM, Kaminski, Adi wrote:
> Can someone confirm that EmbeddedSolrServer calss is thread-safe (meaning from API perspective of add/delete/query operations by different threads)?
> It's not written in any documentation, and we have some different answers from different forums.
>
> The question is regarding Solr 7.6 binaries (in case was changed fixed in later versions).
EmbeddedSolrServer is Solr, without all the http-related stuff normally
provided by Jetty. Solr is thread-safe, and since the embedded server
runs exactly the same core code to provide an index as Solr does, I
would expect it to be thread-safe as well.
Note that we strongly recommend NOT using the embedded server in
production. Achieving redundancy with the embedded server would require
significant extra work, mostly to rebuild the remote capability that
Jetty gives to a full Solr install.
Thanks,
Shawn