abhishekrb19 commented on code in PR #15015:
URL: https://github.com/apache/druid/pull/15015#discussion_r1330970792
##########
server/src/main/java/org/apache/druid/server/coordinator/rules/ForeverBroadcastDistributionRule.java:
##########
@@ -56,6 +56,12 @@ public boolean appliesTo(Interval interval, DateTime
referenceTimestamp)
return true;
}
+ @Override
+ public Interval getInterval(DateTime referenceTimestamp)
+ {
+ return Rules.FOREVER_INTERVAL;
Review Comment:
Updated. Fwiw, the initial version had a slightly different logic and that
was causing validation to fail in some cases because
[eternity](https://github.com/apache/druid/blob/master/processing/src/main/java/org/apache/druid/java/util/common/JodaUtils.java#L44)
is `[Long.MIN_VALUE / 2, Long.MAX_VALUE / 2]`.
--
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]