Class SplitShardCmd

    • Method Detail

      • split

        public boolean split​(org.apache.solr.common.cloud.ClusterState clusterState,
                             org.apache.solr.common.cloud.ZkNodeProps message,
                             org.apache.solr.common.util.NamedList<Object> results)
                      throws Exception
        Throws:
        Exception
      • checkDiskSpace

        public static void checkDiskSpace​(String collection,
                                          String shard,
                                          org.apache.solr.common.cloud.Replica parentShardLeader,
                                          SolrIndexSplitter.SplitMethod method,
                                          org.apache.solr.client.solrj.cloud.SolrCloudManager cloudManager)
                                   throws org.apache.solr.common.SolrException
        Throws:
        org.apache.solr.common.SolrException
      • getParentSlice

        public static org.apache.solr.common.cloud.Slice getParentSlice​(org.apache.solr.common.cloud.ClusterState clusterState,
                                                                        String collectionName,
                                                                        AtomicReference<String> slice,
                                                                        String splitKey)
      • fillRanges

        public static String fillRanges​(org.apache.solr.client.solrj.cloud.SolrCloudManager cloudManager,
                                        org.apache.solr.common.cloud.ZkNodeProps message,
                                        org.apache.solr.common.cloud.DocCollection collection,
                                        org.apache.solr.common.cloud.Slice parentSlice,
                                        List<org.apache.solr.common.cloud.DocRouter.Range> subRanges,
                                        List<String> subSlices,
                                        List<String> subShardNames,
                                        boolean firstReplicaNrt)
      • lockForSplit

        public static boolean lockForSplit​(org.apache.solr.client.solrj.cloud.SolrCloudManager cloudManager,
                                           String collection,
                                           String shard)
                                    throws Exception
        Throws:
        Exception
      • unlockForSplit

        public static void unlockForSplit​(org.apache.solr.client.solrj.cloud.SolrCloudManager cloudManager,
                                          String collection,
                                          String shard)
                                   throws Exception
        Throws:
        Exception