imply-cheddar commented on code in PR #13930:
URL: https://github.com/apache/druid/pull/13930#discussion_r1135222992
##########
server/src/main/java/org/apache/druid/discovery/DiscoveryDruidNode.java:
##########
@@ -164,6 +166,13 @@ public DruidNode getDruidNode()
return druidNode;
}
+ @Nullable
+ @JsonIgnore
+ public <T extends DruidService> T getService(String key)
+ {
+ return (T) services.get(key);
+ }
+
Review Comment:
What are the chances that there's a ClassCastException thrown here? Should
we try to be defensive?
--
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]