walterddr commented on code in PR #9962:
URL: https://github.com/apache/pinot/pull/9962#discussion_r1047576553
##########
pinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/executor/RoundRobinScheduler.java:
##########
@@ -58,12 +64,29 @@ public class RoundRobinScheduler implements
OpChainScheduler {
@VisibleForTesting
final Set<MailboxIdentifier> _seenMail = new HashSet<>();
+ public RoundRobinScheduler() {
+ this(DEFAULT_RELEASE_TIMEOUT);
+ }
+
+ public RoundRobinScheduler(long releaseTimeout) {
+ this(releaseTimeout, System::currentTimeMillis);
+ }
+
+ public RoundRobinScheduler(long releaseTimeoutMs, Supplier<Long> ticker) {
+ _releaseTimeout = releaseTimeoutMs;
+ _ticker = ticker;
+ }
Review Comment:
ah. I see want you meant. sound good. sorry I misunderstood the purpose of
this approach
--
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]