Skip to content

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 <[email protected]>
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 <[email protected]>
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