Skip to content

MINOR: Support co-resident mode in KRaft TestKit#12157

Closed
dengziming wants to merge 1 commit intoapache:trunkfrom
dengziming:minor-coraft
Closed

MINOR: Support co-resident mode in KRaft TestKit#12157
dengziming wants to merge 1 commit intoapache:trunkfrom
dengziming:minor-coraft

Conversation

@dengziming
Copy link
Copy Markdown
Member

More detailed description of your change
The behavior between co-resident mode and discrete mode is different, so we should support co-resident mode too. I also find a bug in co-resident, see KAFKA-13228.

Summary of testing strategy (including rationale)
Changed existing clusterTest to support co-resident mode except for ApiVersionsRequestTest, which is related to a bug.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

for (ControllerNode node : nodes.controllerNodes().values()) {
Map<String, String> props = new HashMap<>(configProps);
props.put(KafkaConfig$.MODULE$.ProcessRolesProp(), "controller");
props.put(KafkaConfig$.MODULE$.ProcessRolesProp(), roles(node.id()));
Copy link
Copy Markdown
Contributor

@hachikuji hachikuji May 25, 2022

Choose a reason for hiding this comment

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

Something that was never quite clear to me is why we bother working with the lower-level ControllerServer and BrokerServer instances in this class. It seems like it would be simpler to use KafkaRaftServer which is already doing the dirty work of building KafkaRaftManager and the server objects. Not saying you have to do that here, but it would be useful to know if there is an actual benefit.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, I think that's a good point. I will try to improve this.

@dengziming
Copy link
Copy Markdown
Member Author

Close this currently since it has been done in another PR, and I created KAFKA-14047 for the discussion.

@dengziming dengziming closed this Jul 6, 2022
@dengziming dengziming deleted the minor-coraft branch November 24, 2022 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants