Jackie-Jiang commented on code in PR #19888:
URL: https://github.com/apache/pinot/pull/19888#discussion_r4647565510


##########
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:
   Could we introduce a role-neutral key in this PR, e.g. 
`pinot.groovy.ingestion.disabled`, with backward compatibility scoped to the 
controller?
   
   - Controller: honor both keys. The new key takes precedence when present; 
fall back to `controller.disable.ingestion.groovy` only when the new key is 
absent. A present but invalid new value should disable Groovy rather than 
trigger fallback.
   - Server/minion: honor only the new key. Missing or invalid values disable 
Groovy.
   
   For rolling upgrades, operators would set the new cluster key before 
upgrading servers/minions and keep both keys consistent while older controllers 
are running. This addresses the mixed-version concern without introducing the 
controller-prefixed key as a compatibility contract for servers/minions. Since 
that distribution is being introduced here, I'd prefer to do this now, with 
tests for precedence, conflicting values, and key removal.



-- 
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