Hello thank you very much for the test program. Your program works. Looking for 
differences I found that I didn’t have the http2-hpack jar. After adding it to 
my class path my program also works.
I don’t know why a missing jar can cause a timeout instead of a class not found 
exception but maybe it’s a something pluggable that is however required in this 
case.

Thanks again for your help!
— 
Ing. Andrea Vettori
Sistemi Informativi
B2BIres s.r.l.

> On 4 Sep 2023, at 02:57, Shawn Heisey <apa...@elyograg.org> wrote:
> 
> 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
> 

Reply via email to