[
https://issues.apache.org/jira/browse/BEAM-7874?focusedWorklogId=288137&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-288137
]
ASF GitHub Bot logged work on BEAM-7874:
----------------------------------------
Author: ASF GitHub Bot
Created on: 02/Aug/19 18:06
Start Date: 02/Aug/19 18:06
Worklog Time Spent: 10m
Work Description: Hannah-Jiang commented on pull request #9218:
[BEAM-7874], [BEAM-7873] FnApi bugfixs
URL: https://github.com/apache/beam/pull/9218#discussion_r310240952
##########
File path: sdks/python/apache_beam/runners/portability/local_job_service.py
##########
@@ -200,10 +202,13 @@ def run(self):
if self._worker_id:
env_dict['WORKER_ID'] = self._worker_id
- p = subprocess.Popen(
- self._worker_command_line,
- shell=True,
- env=env_dict)
+ # deadlock would happen with py2, so add a lock here.
+ # no problem with py3.
+ with SubprocessSdkWorker._lock:
+ p = subprocess.Popen(
Review comment:
It turns out that deadlock happens with Popen(), rather than with p.wait().
Ran 1500 of wordcount.py with 3 workers and confirmed deadlock doesn't
happen.
----------------------------------------------------------------
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: 288137)
Time Spent: 40m (was: 0.5h)
> FnApi only supports up to 10 workers
> ------------------------------------
>
> Key: BEAM-7874
> URL: https://issues.apache.org/jira/browse/BEAM-7874
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core
> Reporter: Hannah Jiang
> Assignee: Hannah Jiang
> Priority: Major
> Fix For: 2.15.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Because max_workers of grpc servers are hardcoded to 10, it only supports up
> to 10 workers, and if we pass more direct_num_workers greater than 10,
> pipeline hangs, because not all workers get connected to the runner.
> [https://github.com/apache/beam/blob/master/sdks/python/apache_beam/runners/portability/fn_api_runner.py#L1141]
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)