You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Beam JIRA Bot (Jira)" <ji...@apache.org> on 2022/04/19 20:59:00 UTC
[jira] [Updated] (BEAM-14330) google.api_core.exceptions.MethodNotImplemented when tests run in parallel
[ https://issues.apache.org/jira/browse/BEAM-14330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Beam JIRA Bot updated BEAM-14330:
---------------------------------
Status: Open (was: Triage Needed)
> google.api_core.exceptions.MethodNotImplemented when tests run in parallel
> --------------------------------------------------------------------------
>
> Key: BEAM-14330
> URL: https://issues.apache.org/jira/browse/BEAM-14330
> Project: Beam
> Issue Type: Improvement
> Components: runner-py-interactive
> Reporter: Ning
> Assignee: Ning
> Priority: P2
>
> An error is thrown when tests run in parallel for interactive modules.
> >google.api_core.exceptions.MethodNotImplemented: 501 Received http2 header with status: 404
>
> The cause is shared global singleton among tests: a cluster related test registers a cluster manager in the global state while a non-cluster test cleans up the global state without necessary mocking.
> The solution should be mock the global singleton in tests to isolate tests from each other.
> To reproduce the failure (note: parallel execution is non-deterministic), add something like '-n 5' when executing pytests.
> For example:
> >pytest -n 5 apache_beam/runners/interactive/interactive_runner_test.py
--
This message was sent by Atlassian Jira
(v8.20.7#820007)