m-trieu commented on code in PR #34367:
URL: https://github.com/apache/beam/pull/34367#discussion_r2023652591


##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/streaming/harness/WindmillStreamSender.java:
##########
@@ -88,19 +105,24 @@ private WindmillStreamSender(
         streamingEngineStreamFactory.createDirectCommitWorkStream(
             connection, 
streamingEngineThrottleTimers.commitWorkThrottleTimer());
     this.workCommitter = workCommitterFactory.apply(commitWorkStream);
-    this.getWorkStream =
-        streamingEngineStreamFactory.createDirectGetWorkStream(
-            connection,
-            withRequestBudget(getWorkRequest, getWorkBudget.get()),
-            streamingEngineThrottleTimers.getWorkThrottleTimer(),
-            FixedStreamHeartbeatSender.create(getDataStream),
-            getDataClientFactory.apply(getDataStream),
-            workCommitter,
-            workItemScheduler);
+    this.activeGetWorkStream = new AtomicReference<>();
+    this.getWorkStreamFactory =
+        () ->
+            streamingEngineStreamFactory.createDirectGetWorkStream(
+                connection,
+                withRequestBudget(getWorkRequest, getWorkBudget.get()),
+                streamingEngineThrottleTimers.getWorkThrottleTimer(),

Review Comment:
   `streamingEngineThrottleTimers.getWorkThrottleTimer()` returns the same 
throttle timer, will use the same for the others.
   
   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: github-unsubscr...@beam.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to