-
Notifications
You must be signed in to change notification settings - Fork 268
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
Fix context issue in bareos-dir python plugin #1047
Fix context issue in bareos-dir python plugin #1047
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good work!
Only the CHANGELOG.md entry is missing.
3c1b118
to
e7948da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! Thank you!
Previously when running multiple jobs concurrently, the python plugin would not always set the right context before running the python callback function. This patch makes the context thread_local and resets it before every callback.
This patch lets the test run multiple jobs in parallel and checks that each plugin callback sees the correct plugin context.
e7948da
to
1f2263b
Compare
1f2263b
to
c3557d0
Compare
This PR adds a test that exposes a bug in python-dir's context handling and provides an appropriate fix.
Thank you for contributing to the Bareos Project!
Please check
If you have any questions or problems, please give a comment in the PR.
Helpful documentation and best practices
Checklist for the reviewer of the PR (will be processed by the Bareos team)
General
Source code quality
bareos-check-sources --since-merge
does not report any problemsgit status
should not report modifications in the source tree after building and testingTests