[
https://issues.apache.org/jira/browse/BEAM-13193?focusedWorklogId=685452&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-685452
]
ASF GitHub Bot logged work on BEAM-13193:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 23/Nov/21 18:31
Start Date: 23/Nov/21 18:31
Worklog Time Spent: 10m
Work Description: lukecwik commented on a change in pull request #16051:
URL: https://github.com/apache/beam/pull/16051#discussion_r755405431
##########
File path:
sdks/java/harness/src/main/java/org/apache/beam/fn/harness/control/ProcessBundleHandler.java
##########
@@ -458,7 +458,10 @@ public BundleFinalizer getBundleFinalizer() {
startFunction.run();
}
- if
(!bundleProcessor.getInboundEndpointApiServiceDescriptors().isEmpty()) {
+ if (request.getProcessBundle().hasElements()) {
+
bundleProcessor.getInboundObserver().accept(request.getProcessBundle().getElements());
+ bundleProcessor.getInboundObserver().awaitCompletion();
Review comment:
This will block forever if the elements message is malformed and doesn't
contain "terminal" elements so it would be better to handle this case
explicitly within the BeamFnDataInboundObserver2 as a separate method.
Also passing it through the queue within BeamFnDataInboundObserver2 and
adding the additional synchronization seems wasteful.
--
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 685452)
Time Spent: 7.5h (was: 7h 20m)
> Optional data embedding in Fn API control request and response
> --------------------------------------------------------------
>
> Key: BEAM-13193
> URL: https://issues.apache.org/jira/browse/BEAM-13193
> Project: Beam
> Issue Type: New Feature
> Components: sdk-java-harness, sdk-py-harness
> Reporter: Yichi Zhang
> Priority: P2
> Time Spent: 7.5h
> Remaining Estimate: 0h
>
> https://docs.google.com/document/d/14p8Y_n4IY5n9L_I9l5x9lVGgml4ZzdCw645HldndCrw/edit
--
This message was sent by Atlassian Jira
(v8.20.1#820001)