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

   Currently, providing an empty value (`--interval=`) resulted in an error:
   `ERROR joptsimple.OptionArgumentConversionException: Cannot parse argument 
'' of option interval`
   
   This patch updates the `./bin/kafka-client-metrics.sh --alter 
--bootstrap-server=$BROKERS --name MYMETRICS ` command to allow resetting the 
interval configuration by passing an empty value (`--interval=`).
   
   For example:
   - `--interval=6000` → Sets the interval to 6000 (validated as a valid 
integer).
   - `--interval=` → Resets (deletes) the interval setting.
   - `--interval=abc` → Fails with an error: "Invalid interval value. Must be a 
valid integer or empty to delete the setting."


-- 
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-unsubscr...@kafka.apache.org

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

Reply via email to