Skip to content

Commit

Permalink
[FLINK-26543][python] Fix the issue that exceptions generated during …
Browse files Browse the repository at this point in the history
…startup are lost in Python loopback mode

This closes apache#19013.
  • Loading branch information
HuangXingBo committed Mar 9, 2022
1 parent 02e155e commit 23f5fe2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flink-python/pyflink/fn_execution/beam/beam_boot.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ def check_not_empty(check_str, error_message):
worker_id=worker_id,
provision_endpoint=ApiServiceDescriptor(url=provision_endpoint),
params=params)
client.StartWorker(request)
response = client.StartWorker(request)
if response.error:
raise RuntimeError("Error starting worker: %s" % response.error)
else:
logging.info("Starting up Python harness in a standalone process.")
metadata = [("worker_id", worker_id)]
Expand Down

0 comments on commit 23f5fe2

Please sign in to comment.