Description
SolrCollectionBootstrapper uploads a config to solr and creates a collection.
If solr is down (there are no live servers) during the collection creation phase, we got a meaningful error message (from catalina.out):
May 19, 2021 4:37:44 PM org.apache.ranger.server.tomcat.SolrCollectionBootstrapper getCollections SEVERE: getCollections() operation failed : org.apache.solr.client.solrj.SolrServerException: No live SolrServers available to handle this request
On the other hand, if solr is down during the config upload phase the error message is not too useful:
May 20, 2021 8:07:59 AM org.apache.ranger.server.tomcat.SolrCollectionBootstrapper uploadConfiguration SEVERE: Error while uploading configs : java.lang.ArrayIndexOutOfBoundsException: 0