goutamadwant commented on code in PR #19202:
URL: https://github.com/apache/pinot/pull/19202#discussion_r3755330525


##########
pinot-plugins/pinot-stream-ingestion/pinot-kafka-4.0/src/main/java/org/apache/pinot/plugin/stream/kafka40/KafkaPartitionLevelConnectionHandler.java:
##########
@@ -98,16 +99,18 @@ private Properties buildProperties(StreamConfig 
streamConfig) {
     return consumerProp;
   }
 
-  /// Filter properties to only include the specified Kafka configurations.
-  /// This prevents "was supplied but isn't a known config" warnings from 
Kafka clients.
+  /// Filter properties to include the specified Kafka configurations and the 
dynamic config-provider namespace.
+  /// This prevents "was supplied but isn't a known config" warnings without 
dropping config-provider settings.
   ///
   /// @param props The properties to filter
   /// @param validConfigNames The set of valid configuration names for the 
target Kafka client
   /// @return A new Properties object containing only the valid configurations
-  private Properties filterKafkaProperties(Properties props, Set<String> 
validConfigNames) {
+  @VisibleForTesting
+  static Properties filterKafkaProperties(Properties props, Set<String> 
validConfigNames) {
     Properties filteredProps = new Properties();
     for (String key : props.stringPropertyNames()) {
-      if (validConfigNames.contains(key)) {
+      if (validConfigNames.contains(key) || 
key.equals(AbstractConfig.CONFIG_PROVIDERS_CONFIG)
+          || key.startsWith(AbstractConfig.CONFIG_PROVIDERS_CONFIG + ".")) {

Review Comment:
   done. Filtering and validation now live in `pinot-kafka-base` as 
`KafkaConfigUtils`, and the shared resolution setup lives in 
`KafkaConfigProviderTestUtils`. The Kafka 3.x and 4.x tests now contain only 
the small version-specific calls.



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