vinayakphegde commented on code in PR #1485: URL: https://github.com/apache/solr/pull/1485#discussion_r1146346389
########## solr/core/src/java/org/apache/solr/cloud/api/collections/SplitShardCmd.java: ########## @@ -873,42 +873,85 @@ public static void checkDiskSpace( SolrIndexSplitter.SplitMethod method, SolrCloudManager cloudManager) throws SolrException { + // check that enough disk space is available on the parent leader node // otherwise the actual index splitting will always fail - NodeStateProvider nodeStateProvider = cloudManager.getNodeStateProvider(); - Map<String, Object> nodeValues = - nodeStateProvider.getNodeValues( - parentShardLeader.getNodeName(), Collections.singletonList(ImplicitSnitch.DISK)); - Map<String, Map<String, List<Replica>>> infos = - nodeStateProvider.getReplicaInfo( - parentShardLeader.getNodeName(), Collections.singletonList(CORE_IDX.metricsAttribute)); - if (infos.get(collection) == null || infos.get(collection).get(shard) == null) { + + ModifiableSolrParams params; + String metricName; + GenericSolrRequest req; + SolrResponse rsp; Review Comment: Haha. I am working on the Linux kernel too, so mixed up my coding styles. Will change it. -- 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