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

[8.0] Avoid locking in MessageQueueHandler #7964

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

chrisburr
Copy link
Member

In logging.Handler cpython suggests having a lock on the handle method to avoid multiple lines being emitted at the same time and corrupting the output.

For the MessageQueueHandler this isn't actually a concern and it actually just becomes a source of lock contention.

BEGINRELEASENOTES

*Core
FIX: Avoid locking in MessageQueueHandler

ENDRELEASENOTES

@DIRACGridBot DIRACGridBot added the alsoTargeting:integration Cherry pick this PR to integration after merge label Dec 19, 2024
@chaen chaen merged commit 70f7aae into DIRACGrid:rel-v8r0 Dec 20, 2024
26 checks passed
@DIRACGridBot DIRACGridBot added the sweep:done All sweeping actions have been done for this PR label Dec 20, 2024
DIRACGridBot pushed a commit to DIRACGridBot/DIRAC that referenced this pull request Dec 20, 2024
@DIRACGridBot
Copy link

Sweep summary

Sweep ran in https://github.com/DIRACGrid/DIRAC/actions/runs/12430060530

Successful:

  • integration

@chrisburr chrisburr deleted the avoid-log-lock branch December 20, 2024 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alsoTargeting:integration Cherry pick this PR to integration after merge sweep:done All sweeping actions have been done for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants