-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[hotfix]groovy class cache leak #9716
Conversation
👍 |
String templateRendered = GROOVY_TEMPLATE_ENGINE.createTemplate(template).make(contextMap).toString(); | ||
GROOVY_SHELL.getClassLoader().clearCache(); |
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.
this means the cache will not kick in if we try to re-register the same template. but i don't think this will be created on a per-row basis
pinot-spi/src/main/java/org/apache/pinot/spi/utils/GroovyTemplateUtils.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Xiaotian (Jackie) Jiang <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #9716 +/- ##
=============================================
+ Coverage 28.13% 63.01% +34.88%
- Complexity 53 4758 +4705
=============================================
Files 1936 1938 +2
Lines 103927 104133 +206
Branches 15770 15780 +10
=============================================
+ Hits 29235 65619 +36384
+ Misses 71832 33643 -38189
- Partials 2860 4871 +2011
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
classloader cache is not cleared.
before:

after:
