You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "DL1231 (via GitHub)" <gi...@apache.org> on 2025/12/11 07:04:39 UTC

[PR] KAFKA-19980: ConfigCommand#validatePropsKey should accept `$` symbol [kafka]

DL1231 opened a new pull request, #21125:
URL: https://github.com/apache/kafka/pull/21125

   1. Enabled ConfigCommand#validatePropsKey to support the `$` symbol.
   2. Added UT and IT for the change.


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-19980: ConfigCommand#validatePropsKey should accept `$` symbol [kafka]

Posted by "DL1231 (via GitHub)" <gi...@apache.org>.
DL1231 commented on PR #21125:
URL: https://github.com/apache/kafka/pull/21125#issuecomment-3677201183

   Thanks for the tip! I've added a comment in the code to highlight the need for escaping the `$` symbol in CLI usage. This should help users understand the context.
   PR: https://github.com/apache/kafka/pull/21186


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-19980: ConfigCommand#validatePropsKey should accept `$` symbol [kafka]

Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 merged PR #21125:
URL: https://github.com/apache/kafka/pull/21125


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-19980: ConfigCommand#validatePropsKey should accept `$` symbol [kafka]

Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 commented on code in PR #21125:
URL: https://github.com/apache/kafka/pull/21125#discussion_r2609481758


##########
core/src/main/scala/kafka/admin/ConfigCommand.scala:
##########
@@ -137,7 +137,7 @@ object ConfigCommand extends Logging {
 
   private def validatePropsKey(props: Properties): Unit = {
     props.keySet.forEach { propsKey =>
-      if (!propsKey.toString.matches("[a-zA-Z0-9._-]*")) {
+      if (!propsKey.toString.matches("[$a-zA-Z0-9._-]*")) {

Review Comment:
   Could you please add a comment with an explanation of the usage of `$`



-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-19980: ConfigCommand#validatePropsKey should accept `$` symbol [kafka]

Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 commented on PR #21125:
URL: https://github.com/apache/kafka/pull/21125#issuecomment-3665095604

   > It is good to document this change for users. When running from CLI, we have to include a trailing slash to escape the dollar:
   
   That makes sense. @DL1231 Could you address this comment with a minor patch?


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-19980: ConfigCommand#validatePropsKey should accept `$` symbol [kafka]

Posted by "kamalcph (via GitHub)" <gi...@apache.org>.
kamalcph commented on PR #21125:
URL: https://github.com/apache/kafka/pull/21125#issuecomment-3664787935

   It is good to document this change for users. When running from CLI, we have to include a trailing slash to escape the dollar: 
   
   The below one will change the logger level in ClientQuotaManager class not in ThrottledChannelReaper:
   ```
   sh kafka-configs.sh --bootstrap-server localhost:9092 --broker-logger 0 --add-config org.apache.kafka.server.quota.ClientQuotaManager$ThrottledChannelReaper=DEBUG --alter
   ```
   
   Valid command: 
   ```
   sh kafka-configs.sh --bootstrap-server localhost:9092 --broker-logger 0 --add-config org.apache.kafka.server.quota.ClientQuotaManager\$ThrottledChannelReaper=DEBUG --alter
   ```


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-19980: ConfigCommand#validatePropsKey should accept `$` symbol [kafka]

Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 commented on PR #21125:
URL: https://github.com/apache/kafka/pull/21125#issuecomment-3642157644

   @smjn Do you have a chance to take a look at this PR?


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-19980: ConfigCommand#validatePropsKey should accept `$` symbol [kafka]

Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 commented on PR #21125:
URL: https://github.com/apache/kafka/pull/21125#issuecomment-3646788050

   I am about to merge this. Since it is being shipped in trunk, we will have time to address any feedback in a follow-up PR


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-19980: ConfigCommand#validatePropsKey should accept `$` symbol [kafka]

Posted by "kamalcph (via GitHub)" <gi...@apache.org>.
kamalcph commented on PR #21125:
URL: https://github.com/apache/kafka/pull/21125#issuecomment-3647575910

   Thanks for fixing this issue!


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org