-
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
Disable Groovy function by default #8711
Conversation
@@ -1033,8 +1033,8 @@ private HandlerContext getHandlerContext(@Nullable TableConfig offlineTableConfi | |||
} | |||
} | |||
|
|||
// Disable Groovy if either offline or realtime table config disables Groovy | |||
boolean disableGroovy = offlineTableDisableGroovyQuery | realtimeTableDisableGroovyQuery; | |||
// Disable Groovy if both offline and realtime table config disable Groovy |
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.
Why do we change this? We can only allow groovy when both offline and realtime table has it enabled
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.
I will improve this logic in that case. I was trying to handle offline/ realtime only case
.
We need an extra null
check for the table configs.
- If both offline/realtime exists, allow if both got enabled.
- if only one exists, allow if the specific table got enabled.
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.
@Jackie-Jiang pls review the updated code.
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseBrokerRequestHandler.java
Outdated
Show resolved
Hide resolved
d727903
to
ceeb249
Compare
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseBrokerRequestHandler.java
Outdated
Show resolved
Hide resolved
pinot-controller/src/main/java/org/apache/pinot/controller/ControllerConf.java
Outdated
Show resolved
Hide resolved
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseBrokerRequestHandler.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #8711 +/- ##
============================================
- Coverage 69.65% 68.44% -1.21%
+ Complexity 4571 4555 -16
============================================
Files 1720 1725 +5
Lines 89835 90105 +270
Branches 13333 13416 +83
============================================
- Hits 62574 61672 -902
- Misses 22940 24124 +1184
+ Partials 4321 4309 -12
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
LGTM
compatibility-verifier/sample-test-suite/config/ControllerConfig.properties
Outdated
Show resolved
Hide resolved
This is the last step for apache#7966 to disable groovy function by default.
Hello, Is there an ETA on when this fix will be released in latest version ? Thanks. |
cc @atris Do we have an ETA for the 0.11.0 release? |
This is the last step for #7966 to disable groovy function by default.
Release Notes: We are disabling groovy function by default due to the potential security issues. To enable back the functionality, users can choose to use table-level config override or broker/controller config to turn it on globally.