On 9/3/23 13:36, Ing. Andrea Vettori wrote:
For this test code I tried a few values of minutes to see if it would work
after some time (it never worked). Usually on production code we use different
timeouts all in the few seconds ranges.
What is the Solr version on the server? Older Solr versions do not work well
with http2. The workaround for those issues is to use http1.1.
It’s version 9.3.0 upgraded from 8.11.2
Are you getting this problem on every connection attempt with SolrJ, or
does it sometimes work?
I wrote a little test program that creates a client (Http2SolrClient
using http2 with timeouts specified) and uses it to do an all docs query:
https://github.com/elyograg/test_vettori
The README should cover everything you need, unless you're running on
Windows. You can still run this on windows, but the steps would be
different.
I would be curious whether the program works against your Solr install.
If it does, maybe there's some difference between what I did in that
program and what you're doing.
Thanks,
Shawn