[ 
https://issues.apache.org/jira/browse/BEAM-3836?focusedWorklogId=424547&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-424547
 ]

ASF GitHub Bot logged work on BEAM-3836:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 18/Apr/20 01:25
            Start Date: 18/Apr/20 01:25
    Worklog Time Spent: 10m 
      Work Description: boyuanzz commented on pull request #11448: [BEAM-3836] 
Enable dynamic splitting/checkpointing within the Java SDK harness.
URL: https://github.com/apache/beam/pull/11448#discussion_r410536424
 
 

 ##########
 File path: 
sdks/java/harness/src/main/java/org/apache/beam/fn/harness/control/ProcessBundleHandler.java
 ##########
 @@ -340,7 +347,12 @@ private void 
createRunnerAndConsumersForPTransformRecursively(
               "Unable to find active bundle for instruction id %s.",
               request.getProcessBundleSplit().getInstructionId()));
     }
-    throw new UnsupportedOperationException("TODO: BEAM-3836, support 
splitting within SDK.");
+    BeamFnApi.ProcessBundleSplitResponse.Builder response =
+        BeamFnApi.ProcessBundleSplitResponse.newBuilder();
+    for (BeamFnDataReadRunner channelRoot : bundleProcessor.getChannelRoots()) 
{
+      channelRoot.trySplit(request.getProcessBundleSplit(), response);
 
 Review comment:
   Is it intended that all roots process the same split request?
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 424547)
    Time Spent: 1h 20m  (was: 1h 10m)

> Java SDK harness should understand a BundleSplitRequest and respond with a 
> BundleSplit before bundle finishes
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: BEAM-3836
>                 URL: https://issues.apache.org/jira/browse/BEAM-3836
>             Project: Beam
>          Issue Type: Sub-task
>          Components: sdk-java-harness
>            Reporter: Eugene Kirpichov
>            Priority: Major
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> This, like BEAM-3835, is more necessary for LS than for checkpointing, but is 
> technically also part of the SDF splitting protocol.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to