You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2020/07/20 20:39:09 UTC
[GitHub] [druid] clintropolis commented on a change in pull request #10183: Fix sys.servers table to not throw NPE and handle brokers/indexers/peons properly for broadcast segments
clintropolis commented on a change in pull request #10183:
URL: https://github.com/apache/druid/pull/10183#discussion_r457677752
##########
File path: server/src/main/java/org/apache/druid/discovery/DiscoveryDruidNode.java
##########
@@ -80,6 +84,16 @@ public DruidNode getDruidNode()
return druidNode;
}
+ public boolean isDiscoverableDataServer()
+ {
+ final DruidService druidService = services.get(DataNodeService.DISCOVERY_SERVICE_KEY);
+ if (druidService == null) {
+ return false;
+ }
+ final DataNodeService dataNodeService = (DataNodeService) druidService;
+ return dataNodeService.isDiscoverable();
+ }
+
public DruidServer toDruidServer()
{
return new DruidServer(
Review comment:
should this precondition check `isDiscoverableDataServer`?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org