-
Notifications
You must be signed in to change notification settings - Fork 14.9k
KAFKA-19447: Replace PartitionState with PartitionRegistration in makeFollower/makeLeader #20335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KAFKA-19447: Replace PartitionState with PartitionRegistration in makeFollower/makeLeader #20335
Conversation
chia7712
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mingyen066 thanks for this cleanup. I have a couple of comments.
|
|
||
| // Constants defined for readability | ||
| private val zkVersion = 0 | ||
| private val partitionEpoch = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
jmh-benchmarks/src/main/java/org/apache/kafka/jmh/fetcher/ReplicaFetcherThreadBenchmark.java
Outdated
Show resolved
Hide resolved
core/src/test/scala/unit/kafka/cluster/AssignmentStateTest.scala
Outdated
Show resolved
Hide resolved
core/src/test/scala/unit/kafka/cluster/AssignmentStateTest.scala
Outdated
Show resolved
Hide resolved
m1a2st
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this patch, some comments
core/src/test/scala/unit/kafka/cluster/AssignmentStateTest.scala
Outdated
Show resolved
Hide resolved
core/src/test/scala/unit/kafka/cluster/AbstractPartitionTest.scala
Outdated
Show resolved
Hide resolved
chia7712
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mingyen066 thanks for updates.
core/src/test/scala/unit/kafka/cluster/AssignmentStateTest.scala
Outdated
Show resolved
Hide resolved
core/src/test/scala/unit/kafka/cluster/AssignmentStateTest.scala
Outdated
Show resolved
Hide resolved
…ionState-in-makeFollower/makeLeader
…ionState-in-makeFollower/makeLeader
Follow-up to
KAFKA-18486
makeFollower/makeLeader
Reviewers: TaiJuWu tjwu1217@gmail.com, Ken Huang s7133700@gmail.com,
Chia-Ping Tsai chia7712@gmail.com