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

JRuby fix for concurrency issue with manager cache #2798

Merged
merged 2 commits into from
Aug 9, 2024
Merged

JRuby fix for concurrency issue with manager cache #2798

merged 2 commits into from
Aug 9, 2024

Conversation

fallwith
Copy link
Contributor

@fallwith fallwith commented Aug 8, 2024

The configuration manager's alteration of its internal cache hash to preserve previously dynamically defined values has been known to cause problems with JRuby given its concurrent access to the hash object. We have used synchronize and Hash#dup fixes previously, but still have reports of issues.

When it comes down to it, the alteration of the hash was only added and still only needed for use by the security agent. So let's just not even attempt to alter the hash if JRuby is in play but the security agent is not.

The configuration manager's alteration of its internal cache hash to
preserve previously dynamically defined values has been known to cause
problems with JRuby given its concurrent access to the hash object. We
have used `synchronize` and `Hash#dup` fixes previously, but still have
reports of issues.

When it comes down to it, the alteration of the hash was only added and
still only needed for use by the security agent. So let's just not even
attempt to alter the hash if JRuby is in play but the security agent is
not.
kaylareopelle
kaylareopelle previously approved these changes Aug 9, 2024
@kaylareopelle
Copy link
Contributor

@fallwith - Should a changelog entry be added for this?

changelog entry for JRuby concurrency fix
@fallwith
Copy link
Contributor Author

fallwith commented Aug 9, 2024

@fallwith - Should a changelog entry be added for this?

Sure. Here's one with cfab1c7

Copy link

github-actions bot commented Aug 9, 2024

SimpleCov Report

Coverage Threshold
Line 93.89% 93%
Branch 70.69% 50%

@fallwith fallwith merged commit 260c4c8 into dev Aug 9, 2024
32 checks passed
@fallwith fallwith deleted the jruby_fix branch August 9, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants