scwhittle commented on code in PR #41444:
URL: https://github.com/apache/beam/pull/41444#discussion_r4667877023
##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/windmill/client/grpc/GrpcDirectGetWorkStream.java:
##########
@@ -210,12 +218,16 @@ private class DirectGetWorkPhysicalStreamHandler extends
PhysicalStreamHandler {
final ConcurrentMap<Long, GetWorkResponseChunkAssembler>
workItemAssemblers =
new ConcurrentHashMap<>();
+ // Epoch captured when this stream opens; isolates draining half-closed
streams.
Review Comment:
I think you can remove the streamEpochs and just store the active physical
stream in the budgettracker. And in maybeSendRequestExtension you can make sure
you only send the request if it corresponds to the active stream by caputring
the stream that requested it.
--
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]