CaoManhDat commented on a change in pull request #1167: SOLR-13845:
DELETEREPLICA API by count and type
URL: https://github.com/apache/lucene-solr/pull/1167#discussion_r380999141
##########
File path:
solr/solrj/src/java/org/apache/solr/client/solrj/request/CollectionAdminRequest.java
##########
@@ -2298,6 +2299,20 @@ public static DeleteReplica
deleteReplicasFromAllShards(String collection, int c
return new DeleteReplica(collection, count);
}
+ public static DeleteReplica deleteReplica(String collection, String shard,
int count, Replica.Type type) {
+ return new DeleteReplica(collection, checkNotNull(CoreAdminParams.SHARD,
shard), count, type);
+ }
+ /**
+ * Returns a SolrRequest to remove a number of replicas from a specific
shard of specific type
+ */
+ public static DeleteReplica deleteReplicasFromShard(String collection,
String shard, int count, Replica.Type type) {
+ return new DeleteReplica(collection, checkNotNull(CoreAdminParams.SHARD,
shard), count, type);
+ }
+ public static DeleteReplica deleteReplicasFromAllShards(String collection,
int count, Replica.Type type) {
Review comment:
and here
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]