Disable Groovy function by default#8711
Conversation
There was a problem hiding this comment.
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.
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.
@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.
|
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.