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

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

                Author: ASF GitHub Bot
            Created on: 04/May/18 01:53
            Start Date: 04/May/18 01:53
    Worklog Time Spent: 10m 
      Work Description: tgroh closed pull request #5269: [BEAM-3326] Add an 
Unsupported StateRequestHandler
URL: https://github.com/apache/beam/pull/5269
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/state/StateRequestHandler.java
 
b/runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/state/StateRequestHandler.java
index cfa86db1b04..d0858935d73 100644
--- 
a/runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/state/StateRequestHandler.java
+++ 
b/runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/state/StateRequestHandler.java
@@ -18,7 +18,8 @@
 package org.apache.beam.runners.fnexecution.state;
 
 import java.util.concurrent.CompletionStage;
-import org.apache.beam.model.fnexecution.v1.BeamFnApi;
+import org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest;
+import org.apache.beam.model.fnexecution.v1.BeamFnApi.StateResponse;
 
 /**
  * Handler for {@link 
org.apache.beam.model.fnexecution.v1.BeamFnApi.StateRequest StateRequests}.
@@ -34,6 +35,12 @@
    * <p>Throwing an error during handling will complete the handler result 
{@link CompletionStage}
    * exceptionally.
    */
-  CompletionStage<BeamFnApi.StateResponse.Builder> 
handle(BeamFnApi.StateRequest request)
-      throws Exception;
+  CompletionStage<StateResponse.Builder> handle(StateRequest request) throws 
Exception;
+
+  static StateRequestHandler unsupported() {
+    return request -> {
+      throw new UnsupportedOperationException(
+          String.format("Cannot use an empty %s", 
StateRequestHandler.class.getSimpleName()));
+    };
+  }
 }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: 98097)
    Time Spent: 8h  (was: 7h 50m)

> Execute a Stage via the portability framework in the ReferenceRunner
> --------------------------------------------------------------------
>
>                 Key: BEAM-3326
>                 URL: https://issues.apache.org/jira/browse/BEAM-3326
>             Project: Beam
>          Issue Type: New Feature
>          Components: runner-core
>            Reporter: Thomas Groh
>            Assignee: Thomas Groh
>            Priority: Major
>              Labels: portability
>          Time Spent: 8h
>  Remaining Estimate: 0h
>
> This is the supertask for remote execution in the Universal Local Runner 
> (BEAM-2899).
> This executes a stage remotely via portability framework APIs



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to