desaikomal commented on code in PR #2583:
URL: https://github.com/apache/helix/pull/2583#discussion_r1293960323
##########
helix-rest/src/main/java/org/apache/helix/rest/server/resources/helix/ClusterAccessor.java:
##########
@@ -321,8 +321,13 @@ public Response updateCluster(@PathParam("clusterId")
String clusterId,
customFieldsMap =
OBJECT_MAPPER.readValue(content, new
TypeReference<HashMap<String, String>>() {
});
- // content is given as a KV mapping. Nullify content
+ // content is given as a KV mapping. Nullify content unless
(case-insensitive) reason key present in map
content = null;
+ for (Map.Entry<String, String> entry : customFieldsMap.entrySet()) {
Review Comment:
just wondering: is the fast way to look if the key exists? but if we write
as "reason" vs/vs "ReAsoN" then that approach won't work.
--
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]