Common IO Utils are now runtime dependency. Fix : simply replace those calls with java standard lib functions
ZkStateReader/ZkClient no longer directly available from the CloudSolrClient. Fix: for simplicity we included the org.apache.solr:solr-solrj-zookeeper:9.1.0 and org.apache.zookeeper:zookeeper:3.8.0 ~as provided dependency~ (has to be compiled, as the runtime environment does not have it by default) and obtain the ZkStateReader/ZkClient from CloudSolrClient.getClusterStateProvider with class casting. We could have instantiated the SolrZkClient directly, but that would require exactly the same extra dependencies anyway, so let's just keep using the one from CloudSolrClient
Other misc changes such as CloudSolrClient$Builder signature change, deprecation of maxShard etc
Description
There are several compilation errors after the upgrade enforced by Synk: https://github.com/fullstorydev/solr-bench/pull/57
Cause/Solution
CloudSolrClient
. Fix: for simplicity we included theorg.apache.solr:solr-solrj-zookeeper:9.1.0
andorg.apache.zookeeper:zookeeper:3.8.0
~as provided dependency~ (has to be compiled, as the runtime environment does not have it by default) and obtain the ZkStateReader/ZkClient fromCloudSolrClient.getClusterStateProvider
with class casting. We could have instantiated the SolrZkClient directly, but that would require exactly the same extra dependencies anyway, so let's just keep using the one fromCloudSolrClient