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

Create a context around TFile::Open() so the context is unregistered … #15670

Merged
merged 1 commit into from Aug 31, 2016

Conversation

dan131riley
Copy link

…in the same thread it was registered in

ROOT's context management implicitly assumes that a file is opened and closed on the same thread, which may not be true for secondary files opened by the MixingModule, and in the future may not be true for primary input files. To avoid the problem, this PR declares a local TContext object in the scope where TFile::Open() is called; when the TContext goes out of scope, its destructor unregisters the context, guaranteeing the context is unregistered in the same thread it was registered in. Hopefully fixes issue #15524.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @dan131riley (Dan Riley) for CMSSW_8_1_X.

It involves the following packages:

IOPool/Input

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

cms-bot commands are list here #13028

@Dr15Jones
Copy link
Contributor

please test

@Dr15Jones
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 31, 2016

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

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_8_1_X IBs after it passes the integration tests. This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @smuzaffar

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@davidlange6
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 2c5ce50 into cms-sw:CMSSW_8_1_X Aug 31, 2016
@dan131riley dan131riley deleted the unregister-tfile-context branch October 9, 2017 15:39
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

4 participants