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

Make the checks and loading of missing dictionaries thread-safe #13291

Merged
merged 2 commits into from Feb 16, 2016

Conversation

Dr15Jones
Copy link
Contributor

Removed the use of a non-thread-safe global list of missing dictionaries. Now centralized checking and loading missing dictionaries to allow only a local list of missing dictionaries.

The global missingTypes list was not thread safe and the operations it was used for could not be made safe even with a concurrent container. Therefore all functions which used to manipulate the global list now require a local list be passed as an argument.
Only do the missing dictionary checks and loads in ProductRegistryHelper as items are to be added to the ProductRegistry. This avoids the use of a global list of missing dictionaries which is not thread-safe.
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @Dr15Jones (Chris Jones) for CMSSW_8_0_X.

It involves the following packages:

DataFormats/Provenance
FWCore/Framework
FWCore/Utilities
IOPool/Output
IOPool/Streamer

@cmsbuild, @smuzaffar, @Dr15Jones, @davidlange6 can you please review it and eventually sign? Thanks.
@Martin-Grunewald, @makortel, @wddgit, @wmtan this is something you requested to watch as well.
@slava77, @Degano, @smuzaffar you are the release manager for this.

cms-bot commands are list here #13028

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/11228/console

@cmsbuild
Copy link
Contributor

-1

Tested at: f109713
I found errors in the following unit tests:

---> test testRecoMETMETProducers had ERRORS
---> test runtestSimCalorimetryHGCalSimProducers had ERRORS

you can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-13291/11228/summary.html

@cmsbuild
Copy link
Contributor

@Dr15Jones
Copy link
Contributor Author

the test failures are not caused by this pull request

@Dr15Jones
Copy link
Contributor Author

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_8_0_X IBs (but tests are reportedly failing). This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @Degano, @smuzaffar

davidlange6 added a commit that referenced this pull request Feb 16, 2016
Make the checks and loading of missing dictionaries thread-safe
@davidlange6 davidlange6 merged commit 329b4ea into cms-sw:CMSSW_8_0_X Feb 16, 2016
@Dr15Jones Dr15Jones deleted the threadSafeMissingTypes branch March 28, 2016 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants