-
Notifications
You must be signed in to change notification settings - Fork 31
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(rules): do not create cached connections for automated rules #763
fix(rules): do not create cached connections for automated rules #763
Conversation
c40e650
to
9fea079
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.
Looks good, I just have a few comments/questions. Tested it out and is working as expected.
Tests failed: https://github.com/cryostatio/cryostat/runs/4400157843?check_suite_focus=true#step:8:1578 Looks the same as #767 |
Hmm, that test keeps failing. I'll take a closer look at it. For now I'll mark this as a draft again while I investigate. |
Remove connection cache size/TTL config, which used an incorrect/outdated cache max size env var name, to better reflect a standard Cryostat deployment using default cache settings (unlimited size, 10s TTL) Fixes cryostatio#762
Related to cryostatio#756 Automated rules processing will reuse existing cached connections if available. If none are available then a new connection will be created and NOT cached, in order to avoid automated rules causing evictions of cached connections for other interactive clients
a5d8ca1
to
24aa160
Compare
I think I've sorted out the failing test now. |
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.
Besides my last comment, the code makes sense and works well when tested.
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.
fix(rules): signal connections opened by rules may be immediately closed
Related to #756
fix(pom): remove itest connection cache size config
Remove connection cache size/TTL config, which used an incorrect/outdated
cache max size env var name, to better reflect a standard Cryostat
deployment using default cache settings (unlimited size, 10s TTL)
Fixes #762
fix(rules): do not create cached connections for automated rules
Related to #756
Automated rules processing will reuse existing cached connections if
available. If none are available then a new connection will be created and
NOT cached, in order to avoid automated rules causing evictions of cached
connections for other interactive clients