Skip to content

[BEAM-6283] Convert PortableStateExecutionTest and PortableExecutionTest to using PAssert - #7333

Merged
mxm merged 1 commit into
apache:masterfrom
mxm:BEAM-6283
Dec 21, 2018
Merged

mxm merged 1 commit into
apache:masterfrom
mxm:BEAM-6283

Conversation

@mxm

@mxm mxm commented Dec 20, 2018

Copy link
Copy Markdown
Contributor

This fixes concurrency issues when writing the test results to a static map.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java 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 --- --- ---

…to using PAssert

This fixes concurrency issues when writing the test results to a static map.
@mxm

mxm commented Dec 21, 2018

Copy link
Copy Markdown
Contributor Author

@ajamato in case you want to have a look.

@tweise

tweise commented Dec 21, 2018

Copy link
Copy Markdown
Contributor

Changes look good but why did it cause a test failure when methods within the same test are not parallelized?

@mxm

mxm commented Dec 21, 2018

Copy link
Copy Markdown
Contributor Author

This has nothing to do with test parallelization. The test itself is writing to a static map concurrently from multiple tasks/threads. It just happens to occur more likely under load when there are multiple instances of this tests or other tests running. This was more visible for the PortableTimersExecutionTest where we previously fixed it via #7214.

@mxm mxm changed the title [BEAM-6283] Convert PortableStateTimerTest and PortableExecutionTest to using PAssert [BEAM-6283] Convert PortableStateExecutionTest and PortableExecutionTest to using PAssert Dec 21, 2018
@mxm
mxm merged commit 845de99 into apache:master Dec 21, 2018
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.

2 participants