apoorvmittal10 commented on PR #16381:
URL: https://github.com/apache/kafka/pull/16381#issuecomment-6802094837

   Seems pending for a while. @m1a2st is this change still we require? If yes 
then can you please also update description of PR to reflect why the change 
only applies to just `broker_type` and not others? I think the --entity-default 
and --entity-name can happen on other types as well. 
   
   Also, cli still rejects this combination, and the test doesn’t catch it.
   
   ConfigCommand.execute has this check:
   ```
   if (opts.options.has(opts.alterOpt) && opts.entityTypes().size() != 
opts.entityNames().size())
       throw new IllegalArgumentException("An entity name must be specified for 
every entity type");
   ```
   With --entity-type brokers --entity-name 0 --entity-default there is 1 type 
and 2 names, so the command fails before it reaches alterConfig. The new test 
calls ConfigCommand.alterConfig(...) directly and skips execute, so it passes.


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

Reply via email to