Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculating orderedFieldsArray eagerly to avoid concurrency problems (QFJ-971) #241

Merged
merged 3 commits into from Dec 23, 2019

Conversation

AndreyNudko
Copy link
Contributor

@AndreyNudko AndreyNudko commented Nov 15, 2019

Fixes #240

I've added unit tests for DataDictionary to verify this refactor doesn't change it's public API. Unfortunately this is as far as I was able to take this - not quite sure how to construct testcase for the actual race.

…when dictionary is shared between multiple sessions
@AndreyNudko AndreyNudko changed the title Calculating orderedFieldsArray eagerly to avoid concurreny problems Calculating orderedFieldsArray eagerly to avoid concurrency problems Nov 15, 2019
@chrjohn
Copy link
Member

chrjohn commented Nov 18, 2019

Thanks for the PR! 👍

@chrjohn chrjohn changed the title Calculating orderedFieldsArray eagerly to avoid concurrency problems Calculating orderedFieldsArray eagerly to avoid concurrency problems (QFJ-971) Dec 20, 2019
@chrjohn chrjohn added this to the QFJ 2.2.0 milestone Dec 20, 2019
@chrjohn chrjohn merged commit 25103c9 into quickfix-j:master Dec 23, 2019
ljagadeesh06 pushed a commit to ljagadeesh06/quickfixj that referenced this pull request Feb 26, 2020
…(QFJ-971) (quickfix-j#241)

* quickfix-j#240 Calculating orderedFieldsArray eagerly to avoid races when dictionary is shared between multiple sessions
* Added unit test to verify race condition is fixed.
* Added missing constructor to PausableThreadPoolExecutor.
Co-authored-by: Christoph John <christoph.john@macd.com>
jli8000 pushed a commit to jli8000/quickfixj that referenced this pull request Sep 22, 2020
…(QFJ-971) (quickfix-j#241)

* quickfix-j#240 Calculating orderedFieldsArray eagerly to avoid races when dictionary is shared between multiple sessions
* Added unit test to verify race condition is fixed.
* Added missing constructor to PausableThreadPoolExecutor.
Co-authored-by: Christoph John <christoph.john@macd.com>
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.

Race caused by static cache in DefaultSessionFactory (QFJ-971)
2 participants