EmbeddedSolrServer thread-safety

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

EmbeddedSolrServer thread-safety

Kaminski, Adi
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.
Reply | Threaded
Open this post in threaded view
|

Re: EmbeddedSolrServer thread-safety

Shawn Heisey-2
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
Reply | Threaded
Open this post in threaded view
|

Re: EmbeddedSolrServer thread-safety

Kaminski, Adi
Hi Shawn,
Thanks a lot for the clarification !!


Regards,
Adi

Sent from Workspace ONE Boxer

On Nov 13, 2019 19:09, Shawn Heisey <[hidden email]> 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.