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
Fixing race condition in EvFDaqDirector #18516
Conversation
using preSourceEvent. Moving this vector to "read" in the input source and reading stream ID from eventPrincipal, which makes this mechanism thread safe*. * under assumption that "getNextEvent" and "read" are mutually exclusive and without data races between them, and run in sequence (one getNextEvent followed by one read). (more than just currentFileIndex_ updates rely on this behavior)
*small fix for singleBufferMode (non-default mode): fix premature exit of the thread in case empty file is seen *removed obsolete comments
A new Pull Request was created by @smorovic (Srecko Morovic) for master. It involves the following packages: EventFilter/Utilities @perrotta, @emeschi, @cmsbuild, @slava77, @mommsen, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
DaqDirector was used to keep track of which file (based on which event) is being processed by which file.
This was not done in thread safe manner, as described in issue #18356
This patch retrives event (file) stream ID from "read" in the input source instead of relying on preSourceEvent in DaqDirector, which can be executed in a different thread.