xiangfu0 commented on code in PR #19888:
URL: https://github.com/apache/pinot/pull/19888#discussion_r4647769814


##########
pinot-spi/src/main/java/org/apache/pinot/spi/utils/CommonConstants.java:
##########
@@ -3312,13 +3313,21 @@ public static class IngestionConfigs {
     public static final int DEFAULT_INGESTION_EXCEPTION_LOG_RATE_LIMIT_PER_MIN 
= 5;
   }
 
-  /// Configuration for setting up groovy static analyzer.
+  /// Configuration for ingestion Groovy and the Groovy static analyzer.
   /// User can config different configuration for query and ingestion (table 
creation and update) static analyzer.
   /// The all configuration is the default configuration for both query and 
ingestion static analyzer.
   public static class Groovy {
+    /// Cluster-only switch for ingestion Groovy. Query Groovy remains 
independently controlled.
+    public static final String DISABLE_INGESTION_GROOVY = 
"controller.disable.ingestion.groovy";

Review Comment:
   Implemented in 6ebf269303eb. Controllers prefer 
`pinot.groovy.ingestion.disabled` and consult 
`controller.disable.ingestion.groovy` only when the new key is absent. An 
invalid or blank new value disables ingestion Groovy. Servers and minions read 
only the new key.
   
   The startup and live-update tests cover conflicting values and key removal, 
including the case where the legacy key is still `false`: removing the new key 
enables controller admission through the fallback and disables new compilation 
on servers and minions. The PR description includes the two-key rolling upgrade 
procedure.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to