beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lc...@apache.org
Subject [beam] branch master updated: fixup! Clarify error message is received from SDK harness
Date Sat, 27 Jan 2018 01:54:47 GMT
This is an automated email from the ASF dual-hosted git repository.

lcwik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 3cf6353  fixup! Clarify error message is received from SDK harness
3cf6353 is described below

commit 3cf635322376fce15eab27137007f5938a236cdc
Author: Robert Burke <rober@frantil.com>
AuthorDate: Fri Jan 26 16:51:14 2018 -0800

    fixup! Clarify error message is received from SDK harness
---
 .../apache/beam/runners/fnexecution/control/FnApiControlClient.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/control/FnApiControlClient.java
b/runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/control/FnApiControlClient.java
index 928dbdd..2897189 100644
--- a/runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/control/FnApiControlClient.java
+++ b/runners/java-fn-execution/src/main/java/org/apache/beam/runners/fnexecution/control/FnApiControlClient.java
@@ -131,7 +131,11 @@ class FnApiControlClient implements Closeable {
         if (response.getError().isEmpty()) {
           completableFuture.set(response);
         } else {
-          completableFuture.setException(new RuntimeException(response.getError()));
+          completableFuture.setException(
+              new RuntimeException(String.format(
+                  "Error received from SDK harness for instruction %s: %s",
+                  response.getInstructionId(),
+                  response.getError())));
         }
       }
     }

-- 
To stop receiving notification emails like this one, please contact
lcwik@apache.org.

Mime
View raw message