Repository navigation
[BEAM-6283] Convert PortableStateExecutionTest and PortableExecutionTest to using PAssert - #7333
Merged
Merged
Conversation
…to using PAssert This fixes concurrency issues when writing the test results to a static map.
Contributor
Author
|
@ajamato in case you want to have a look. |
tweise
approved these changes
Dec 21, 2018
Contributor
|
Changes look good but why did it cause a test failure when methods within the same test are not parallelized? |
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes concurrency issues when writing the test results to a static map.
Post-Commit Tests Status (on master branch)