I am using the CloudSolrClient Solrj api for querying solr cloud collections. For the most part it works well. However we recently experienced a series of outages where our production cloud became unavailable. All the nodes were down. That's a separate topic... The client application tried to launch searches but always experienced a SolrServerException that there were no live nodes available. After a few hundred such exceptions, the application ran out of memory and failed when trying to allocate a thread... I'm not sure where the resources are being leaked in exception handling. Is there a way to ask the CloudSolrClient if there are enough replicas to execute the search.
I'm using Solr 7.2