AndrewJSchofield commented on PR #22197: URL: https://github.com/apache/kafka/pull/22197#issuecomment-4727715065
> > That's because --dry-run checks whether there is a non-empty group of the same type as the command being used. This means you can export offsets using the consumer group tool when there is an active share group, and you can export offsets using the share group tool when there is an active consumer group. The first of these is a pre-existing bug > > I think this deserves a patch before we dive into the CLI optimization. KIP-1359 proposes a new Admin method which would enable us to check the existence and type of a group. As it stands, you can describe groups of a known type, but if a group exists but it's a different type, it is reported as GroupIdNotFound. In order to disambiguate a non-existent group and a group ID not found, it is necessary to list the groups, and listing the groups is an expensive operation just to improve an error message. I wonder whether we can get this small part of KIP-1359 (only just created) into AK 4.4 which would sort out all of this class of problems. -- 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]
