isaric commented on code in PR #4011:
URL: https://github.com/apache/solr/pull/4011#discussion_r2676507478


##########
solr/core/src/java/org/apache/solr/api/NodeConfigClusterPluginsSource.java:
##########
@@ -79,7 +80,7 @@ private static Map<String, Object> readPlugins(final 
NodeConfig cfg) {
         pluginMap.put("class", p.className);
 
         if (p.initArgs.size() > 0) {
-          Map<String, Object> config = p.initArgs.toMap(new HashMap<>());
+          Map<String, Object> config = new SimpleOrderedMap<>(p.initArgs);

Review Comment:
   Changed as requested



##########
solr/core/src/java/org/apache/solr/cloud/api/collections/InstallShardDataCmd.java:
##########
@@ -80,8 +80,7 @@ public void call(ClusterState state, ZkNodeProps message, 
NamedList<Object> resu
     final ModifiableSolrParams coreApiParams = new ModifiableSolrParams();
     coreApiParams.set(
         CoreAdminParams.ACTION, 
CoreAdminParams.CoreAdminAction.INSTALLCOREDATA.toString());
-    typedMessage.toMap(new HashMap<>()).forEach((k, v) -> coreApiParams.set(k, 
v.toString()));
-
+    new SimpleOrderedMap<>(typedMessage).forEach((k, v) -> 
coreApiParams.set(k, v.toString()));

Review Comment:
   Changed



-- 
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]

Reply via email to