pvcnt commented on code in PR #2039: URL: https://github.com/apache/solr/pull/2039#discussion_r1409383558
########## solr/core/src/java/org/apache/solr/cloud/api/collections/CreateShardCmd.java: ########## @@ -97,33 +101,30 @@ public void call(ClusterState clusterState, ZkNodeProps message, NamedList<Objec CollectionHandlingUtils.waitForNewShard(collectionName, sliceName, ccc.getZkStateReader()); String async = message.getStr(ASYNC); - ZkNodeProps addReplicasProps = - new ZkNodeProps( + Map<String, Object> addReplicasProps = + Utils.makeMap( COLLECTION_PROP, - collectionName, + (Object) collectionName, Review Comment: Yes, otherwise it considers the map as `Map<String, String>`. I've never found Java very good at handling type variance. -- 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