Skip to content

MINOR: Various small cleanups in group-coordinator#21450

Merged
mimaison merged 3 commits intoapache:trunkfrom
mimaison:cleanups-group-coordinator
Feb 12, 2026
Merged

MINOR: Various small cleanups in group-coordinator#21450
mimaison merged 3 commits intoapache:trunkfrom
mimaison:cleanups-group-coordinator

Conversation

@mimaison
Copy link
Member

@mimaison mimaison commented Feb 11, 2026

Reviewers: David Jacot djacot@confluent.io, Chia-Ping Tsai
chia7712@gmail.com

Comment on lines 7760 to 7761
List.of(),
new HeartbeatResponseData().setErrorCode(Errors.REBALANCE_IN_PROGRESS.code())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: indentation seems off.

Comment on lines 7770 to 7771
List.of(),
new HeartbeatResponseData()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto.

Comment on lines 7754 to 7755
List.of(),
new HeartbeatResponseData().setErrorCode(Errors.UNKNOWN_MEMBER_ID.code())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: we should 4 spaces here.

@mimaison
Copy link
Member Author

Thanks @dajac for the review. I push an update.

Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mimaison thanks for this cleanup

@@ -199,7 +199,7 @@ public static Set<String> configNames() {
*/
public static void validateNames(Properties props) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider refactoring the call path to use Map instead. I didn't see the specific benefit of using Properties here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can address that in a follow-up

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to do that change let's do it in a separate PR. The caller path comes all the way from ControllerConfigurationValidator which uses Properties for all resource types.

log.warn("Cannot downgrade the consumer group " + consumerGroup.groupId() + ": fail to parse " +
"the Consumer Protocol " + ConsumerProtocol.PROTOCOL_TYPE + ".", e);
log.warn("Cannot downgrade the consumer group {}: fail to parse the Consumer Protocol {}.",
consumerGroup.groupId(), ConsumerProtocol.PROTOCOL_TYPE, e);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the unnecessary indent

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

" to consumer group because the embedded consumer protocol is malformed: "
+ e.getMessage() + ".", e);
log.warn("Cannot upgrade classic group {} to consumer group because the embedded consumer protocol is malformed: {}.",
classicGroup.groupId(), e.getMessage(), e);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Member

@dajac dajac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mimaison mimaison merged commit 6d9ba76 into apache:trunk Feb 12, 2026
27 checks passed
@mimaison mimaison deleted the cleanups-group-coordinator branch February 12, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants