On 10/27/22 16:44, dmitri maziuk wrote:
has anyone gone through the exercise of replacing Data Import Handler
with scripts that POST JSON and if so, are your scripts still working
OK with 8.11.2?
I got a few that work fine with 6.5 and 8.7 but are throwing 503s and
occasional 400s all over the place with 8.11.2.
I converted an entire build system from using DIH requests in Perl to
SolrJ in Java. Wasn't using JSON, but the idea is similar. For full
rebuilds, it still used DIH, but all those calls were made with SolrJ.
That system was NOT in cloud mode.
Normally a 503 error will not be generated by Solr. The only places I
found in the code that do this are when a health check fails or "Server
is shutting down or failed to initialize".
If neither of those situations are present, then any 503 error is
probably generated by a reverse proxy, not Solr. Examples of this are
haproxy, nginx, and apache httpd.
Do you have the whole error text, including any stacktraces?
Solr isn't logging anything useful (at least not at INFO level) and I
can't quite figure out what's up. I tried tweaking the scripts in all
kinds of ways but that isn't helping. The same VM previously ran 6.5
where these problems didn't exist. So I am inclined to blame 8.11.2 at
this point.
If you have already checked solr.log and don't see anything, that's very
odd. Is the server in cloud mode and part of a cluster? If it is, then
the error might be logged by a different server. Can you share the
entire HTTP error responses?
Thanks,
Shawn