Skip to content

[QC-403] Protect pendingInfoRegions from concurrent access#4371

Merged
ktf merged 2 commits intoAliceO2Group:devfrom
knopers8:fix-region-info-callback
Sep 21, 2020
Merged

[QC-403] Protect pendingInfoRegions from concurrent access#4371
ktf merged 2 commits intoAliceO2Group:devfrom
knopers8:fix-region-info-callback

Conversation

@knopers8
Copy link
Collaborator

The callback which adds new elements to mPendingInfoRegions would be invoked by FairMQ in parallel if a device used both zeromq and shared memory transport. As a result, proxies would sometimes crash during initialization.

As we register separate callbacks (one per channel) accessing the same resource, it seems fair to me that we take measures on the DPL side to avoid concurrent access.

The callback which adds new elements to mPendingInfoRegions
would be invoked in parallel if a device used both zeromq and
shared memory transport.
@knopers8 knopers8 requested a review from a team as a code owner September 17, 2020 10:56
@knopers8 knopers8 changed the title [Qc-403] Protect pendingInfoRegions from concurrent access [QC-403] Protect pendingInfoRegions from concurrent access Sep 17, 2020
@knopers8
Copy link
Collaborator Author

@ktf Could you please have a look?

@ktf ktf merged commit 8ecd30f into AliceO2Group:dev Sep 21, 2020
@knopers8 knopers8 deleted the fix-region-info-callback branch September 21, 2020 08:32
arakotoz pushed a commit to arakotoz/AliceO2 that referenced this pull request Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants