Jackie-Jiang opened a new pull request, #20335: URL: https://github.com/apache/pinot/pull/20335
## Summary Remove the 56 fields in `CommonConstants` that nothing in the codebase references: - `Server` full-key constants (`CONFIG_OF_READ_MODE`, `CONFIG_OF_QUERY_EXECUTOR_MAX_EXECUTION_THREADS`, `CONFIG_OF_QUERY_EXECUTOR_GROUPBY_TRIM_THRESHOLD`, `QUERY_EXECUTOR_PRUNER_CONFIG_PREFIX`, etc.). The configs are read through the prefix subset with the short keys, which stay. - Deprecated-for-removal keys whose deprecation has already shipped in a release: the 20 `Accounting.CONFIG_OF_*` keys (deprecated since 1.6.0) and `Helix.CONFIG_OF_ZOOKEEPR_SERVER` (since 1.5.0). - The `MultiStageQueryRunner` op stats cache keys and defaults, which are no longer read since the op stats cache was removed. - Other deprecated constants: `DEFAULT_PINOT_INSECURE_MODE`, `Broker.FALLBACK_REPLICA_GROUP_ID`, `Server.CONFIG_OF_QUERY_EXECUTOR_OPCHAIN_EXECUTOR` and `Server.DEFAULT_QUERY_EXECUTOR_OPCHAIN_EXECUTOR`. - Single unused constants such as `Helix.StateModel.BrokerResourceStateModel.ERROR`, `Helix.CONTROLLER_INSTANCE_PREFIX_LENGTH` / `MINION_INSTANCE_PREFIX_LENGTH`, `Broker.ROUTING_TABLE_CONFIG_PREFIX`, `Broker.MULTI_STAGE_BROKER_REQUEST_HANDLER_TYPE`, `Server.CONFIG_OF_AUTH`, `Controller.PAGE_CACHE_WARMUP_QUERIES_DATA_DIR`, `Minion.METADATA_EVENT_OBSERVER_PREFIX`, `Minion.METRICS_REGISTRY_REGISTRATION_LISTENERS_KEY` and `MultiStageQueryRunner.STATS_REPORTING_MODE_LEGACY`. `Broker.Request.QueryOptionKey` is left untouched: `QueryOptionsUtils` enumerates its fields by reflection to resolve query options case-insensitively, so every field there is in use. None of the removed config keys is read anywhere, so there is no runtime behavior change. Code outside this repository that references one of these public constants needs to drop the reference. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
