[
https://issues.apache.org/jira/browse/BEAM-7874?focusedWorklogId=289749&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-289749
]
ASF GitHub Bot logged work on BEAM-7874:
----------------------------------------
Author: ASF GitHub Bot
Created on: 06/Aug/19 14:41
Start Date: 06/Aug/19 14:41
Worklog Time Spent: 10m
Work Description: robertwb commented on pull request #9218: [BEAM-7874],
[BEAM-7873] FnApi bugfixs
URL: https://github.com/apache/beam/pull/9218#discussion_r310091850
##########
File path: sdks/python/apache_beam/runners/portability/fn_api_runner.py
##########
@@ -1386,7 +1386,8 @@ def get_worker_handlers(self, environment_id,
num_workers):
# assume it's using grpc if environment is not EMBEDDED_PYTHON.
if environment.urn != python_urns.EMBEDDED_PYTHON and \
self._grpc_server is None:
- self._grpc_server = GrpcServer(self._state, self._job_provision_info)
+ self._grpc_server = GrpcServer(
+ self._state, self._job_provision_info, num_workers)
Review comment:
We really need len(self._environments) * num_workers, right?
Also, should we throw an error if this was previously initialized with too
few threads?
----------------------------------------------------------------
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: 289749)
Time Spent: 1h 20m (was: 1h 10m)
> 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: Blocker
> Fix For: 2.15.0
>
> Time Spent: 1h 20m
> 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)