Paul-Blanchaert commented on PR #2926:
URL: https://github.com/apache/solr/pull/2926#issuecomment-2563580128

   Thanks for the encouragement.
   Can you help me understand what you're asking with "an assert somewhere"?
   In order to be able to test the solr server exception, I'll need to change 
the scope of the function to "collect" the http statuscode (400 is returned in 
the case of the solr server exception). Currently, the http response (and 
status) is ignored (headSucceeded = true when no exception is thrown by the jdk 
http client; this probably goes for any 4xx/5xx statusses; but I didn't verify 
that). Should I change the function to set headSucceeded to false when http 
statuscode <> 200?
   That way, we're able to capture the exception prior to the change of this PR 
and we can build a unit test to validate the "enhanced" function.
   Is that what you had in mind?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to