Skip to content

[BEAM-8412] xlang test: set sdk worker parallelism to 1#9817

Merged
ibzib merged 1 commit intoapache:masterfrom
ibzib:xlang-test
Oct 18, 2019
Merged

[BEAM-8412] xlang test: set sdk worker parallelism to 1#9817
ibzib merged 1 commit intoapache:masterfrom
ibzib:xlang-test

Conversation

@ibzib
Copy link

@ibzib ibzib commented Oct 17, 2019

I think cross language tests were relying on the fact that the default for this option was formerly 1, before changed to number of cores by #9785. (Multiple Docker SDK workers would have their own virtual filesystems.) We'll see if this fixes the test.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- Build Status --- --- Build Status
Java Build Status Build Status Build Status Build Status
Build Status
Build Status
Build Status Build Status Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
--- Build Status
Build Status
Build Status
Build Status
--- --- Build Status
XLang --- --- --- Build Status --- --- ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status
Build Status
Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@ibzib
Copy link
Author

ibzib commented Oct 17, 2019

Run Python 2 PostCommit

@ibzib
Copy link
Author

ibzib commented Oct 17, 2019

Run CommunityMetrics PreCommit

@ibzib
Copy link
Author

ibzib commented Oct 17, 2019

Run Python 2 PostCommit

@ibzib
Copy link
Author

ibzib commented Oct 17, 2019

Py precommit flake unrelated (https://issues.apache.org/jira/browse/BEAM-8416)

@ibzib ibzib requested a review from chamikaramj October 17, 2019 21:59
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default for this option is 1. Is it set somewhere else to 0?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noticed that this option was repeated in the Python SDK with a different default. We should fix that: https://github.com/apache/beam/blob/master/sdks/python/apache_beam/options/pipeline_options.py#L848

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for fixing Python SDK's default value instead of here. BTW does this mean that Flink's cross-language implementation is somehow broken when there is more than one worker process per worker node ?

cc: @mxm

Copy link
Contributor

@tweise tweise Oct 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chamikaramj WriteToText relies on shared filesystem, so more than one worker can cause it to fail with the local FS.

If it takes longer to sort out the pipeline option default, then it's probably also OK to merge this first and unblock the CI (assuming no other pre-commit issues).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a comment here why this is necessary. Otherwise LGTM.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a comment here why this is necessary. Otherwise LGTM.

@ibzib ibzib merged commit 16b4afa into apache:master Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants