m-trieu commented on code in PR #30764: URL: https://github.com/apache/beam/pull/30764#discussion_r1559030637
########## runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/streaming/computations/ActiveWorkState.java: ########## @@ -124,11 +128,40 @@ private static Stream<HeartbeatRequest> toHeartbeatRequestStream( .setWorkToken(work.getWorkItem().getWorkToken()) .setCacheToken(work.getWorkItem().getCacheToken()) .addAllLatencyAttribution( - work.getLatencyAttributions( - /* isHeartbeat= */ true, work.getLatencyTrackingId(), sampler)) + work.getLatencyAttributions(/* isHeartbeat= */ true, sampler)) .build()); } + private static Stream<DirectHeartbeatRequest> toHeartbeatRequestStreamDirectPath( Review Comment: done added HeartbeatRequests.java ########## runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/streaming/computations/ComputationState.java: ########## @@ -74,8 +83,12 @@ public ImmutableMap<String, String> getTransformUserNameToStateFamily() { return transformUserNameToStateFamily; } - public ConcurrentLinkedQueue<ExecutionState> getExecutionStateQueue() { - return executionStateQueue; + public void releaseExecutionState(ExecutionState executionState) { + executionStateQueue.offer(executionState); + } + + public Optional<ExecutionState> getExecutionState() { 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: github-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org