Skip to content

KAFKA-19915: [2/3] Move HostedPartition to server module#21475

Open
clolov wants to merge 4 commits intoapache:trunkfrom
clolov:KAFKA-19915-2
Open

KAFKA-19915: [2/3] Move HostedPartition to server module#21475
clolov wants to merge 4 commits intoapache:trunkfrom
clolov:KAFKA-19915-2

Conversation

@clolov
Copy link
Contributor

@clolov clolov commented Feb 13, 2026

Move HostedPartition to Java

@github-actions github-actions bot added triage PRs from the community core Kafka Broker labels Feb 13, 2026
@github-actions github-actions bot added the storage Pull requests that target the storage module label Feb 13, 2026
@clolov clolov changed the title [2/3] Move HostedPartition to server module KAFKA-19915: [2/3] Move HostedPartition to server module Feb 13, 2026
* log record from the Quorum controller indicating that the broker should be either a leader
* or follower of a partition.
*/
public sealed interface HostedPartition<T> permits None, Online, Offline { } No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

Could we merge all these files in here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When I tried doing it Java started complaining that it wants one public record per file. If you have a suggestion on how to silence that I am happy to put them all in the same file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, actually, let me try something, maybe I was approaching this the wrong way

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, hopefully the latest version address this 😊! I was trying to put the records on the same level as the interface, but they should have been put nested inside the interface!

@github-actions github-actions bot removed the triage PRs from the community label Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Kafka Broker storage Pull requests that target the storage module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants