clintropolis commented on a change in pull request #10054:
URL: https://github.com/apache/druid/pull/10054#discussion_r442600466



##########
File path: 
server/src/main/java/org/apache/druid/server/coordinator/rules/Rule.java
##########
@@ -51,6 +51,14 @@
 
   boolean appliesTo(Interval interval, DateTime referenceTimestamp);
 
+  /**
+   * Returns whether this Rules should be matched and considered in loadstatus 
API.
+   * In general, Rules that load segment onto any Druid node should return 
true.
+   * Any Rule that returns true for this method should add a compute logic (as 
if case condition) for the particular
+   * Rule class in {@link 
DruidCoordinator#computeUnderReplicationCountsPerDataSourcePerTierForSegments}
+   */
+  boolean matchLoadStatusCount();

Review comment:
       It seems leaky to tie this call to an API method, rather, what is being 
captured here is whether or not a `Rule` will load data instead of dropping 
data, because not all rules that load data are of type `LoadRule`. Should this 
just be `isLoadRule()` or something to that effect?




----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to