HoustonPutman commented on code in PR #4046:
URL: https://github.com/apache/solr/pull/4046#discussion_r2699675387
##########
solr/core/src/java/org/apache/solr/handler/admin/api/InstallShardData.java:
##########
@@ -81,27 +78,17 @@ public AsyncJerseyResponse installShardData(
// Only install data to shards which belong to a collection in read-only
mode
final DocCollection dc =
coreContainer.getZkController().getZkStateReader().getCollection(collName);
- if (!dc.isReadOnly()) {
+ if (dc.getSlice(shardName).getReplicas().size() > 1 && !dc.isReadOnly()) {
Review Comment:
Yeah this fell through the cracks from the original-original PR. I'll undo
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]