arunpandianp commented on code in PR #39473:
URL: https://github.com/apache/beam/pull/39473#discussion_r3809180471
##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/util/KeyGroupWorkQueue.java:
##########
@@ -67,9 +68,14 @@ static class Node {
@Nullable Node prevKeyGroupNode;
@Nullable Node nextKeyGroupNode;
+ private static boolean isMultiKeyBatchingDisabled(Runnable task) {
+ return (task instanceof QueuedWork)
+ && ((QueuedWork) task).getWork().isMultiKeyBatchingDisabled();
+ }
+
Node(Runnable task) {
this.task = task;
- if (task instanceof QueuedWork) {
+ if (task instanceof QueuedWork && !isMultiKeyBatchingDisabled(task)) {
Review Comment:
done.
--
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]