patsonluk commented on code in PR #1242: URL: https://github.com/apache/solr/pull/1242#discussion_r1055691604
########## solr/solrj/src/java/org/apache/solr/common/cloud/DocCollection.java: ########## @@ -139,30 +138,10 @@ public static String getCollectionPathRoot(String coll) { * only a replica is updated */ public DocCollection copyWith(PerReplicaStates newPerReplicaStates) { Review Comment: By following the old code logic, it appears to be necessary to update the "replicas" stored within "Slice"? For example if someone call docCollection.getSlice("shard1").getReplica("core_node_2"), the `Replica` stored in the `Slice` might not reflect the latest one from `newPerReplicaStates` since they are all direct field and map lookup afaik :) -- 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