KAFKA-7904: Add AtMinIsr partition metric and TopicCommand option (KIP-427)#6421
KAFKA-7904: Add AtMinIsr partition metric and TopicCommand option (KIP-427)#6421KevinLiLu wants to merge 4 commits into
Conversation
|
Hi @harshach @vahidhashemian @lindong28 , can I get a review for this? |
|
Bumping this as it has been a couple weeks. Can I get a review? @harshach @vahidhashemian @lindong28 @gwenshap |
gwenshap
left a comment
There was a problem hiding this comment.
Looks good. One small request.
| allTopicLevelOpts -- Set(describeOpt) + reportUnderMinIsrPartitionsOpt + reportUnavailablePartitionsOpt + reportAtMinIsrPartitionsOpt + topicsWithOverridesOpt) | ||
| CommandLineUtils.checkInvalidArgs(parser, options, reportUnderMinIsrPartitionsOpt, | ||
| allTopicLevelOpts -- Set(describeOpt) + reportUnderReplicatedPartitionsOpt + reportUnavailablePartitionsOpt + topicsWithOverridesOpt + zkConnectOpt) | ||
| allTopicLevelOpts -- Set(describeOpt) + reportUnderReplicatedPartitionsOpt + reportUnavailablePartitionsOpt + reportAtMinIsrPartitionsOpt + topicsWithOverridesOpt + zkConnectOpt) |
There was a problem hiding this comment.
Nit:
We repeatedly add reportUnderReplicatedPartitionsOpt, reportUnavailablePartitionsOpt, reportAtMinIsrPartitionsOpt and reportUnderMinIsrPartitionsOpt to the set of disallowed options, and it is messy to read (and a . Maybe create a new set like allReplicationReportOpts and use this everywhere?
There was a problem hiding this comment.
Great idea. Thanks!
|
Hi @gwenshap , thanks for the review. I have refactored the options code to use an |
|
Thank you. Looks good and tests pass. Merging. |
…P-427) - Add `AtMinIsrPartitionCount` metric to `ReplicaManager` - Add `AtMinIsr` metric to `Partition` - Add `--at-min-isr-partitions` describe `TopicCommand` option https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=103089398 Author: Kevin Lu <lu.kevin@berkeley.edu> Author: lu.kevin@berkeley.edu <kelu@paypal.com> Reviewers: Gwen Shapira Closes apache#6421 from KevinLiLu/KAFKA-7904
…and TopicCommand option (KIP-427) TICKET = KAFKA-7904 LI_DESCRIPTION = This patch includes broker metrics for AtMinIsr and modified unit tests. However, it doesn't include topiccommand related change from the original cherry-picked commit because of extra dependency. EXIT_CRITERIA = HASH [31d191f] ORIGINAL_DESCRIPTION = - Add `AtMinIsrPartitionCount` metric to `ReplicaManager` - Add `AtMinIsr` metric to `Partition` - Add `--at-min-isr-partitions` describe `TopicCommand` option https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=103089398 Author: Kevin Lu <lu.kevin@berkeley.edu> Author: lu.kevin@berkeley.edu <kelu@paypal.com> Reviewers: Gwen Shapira Closes apache#6421 from KevinLiLu/KAFKA-7904 (cherry picked from commit 31d191f)
…and TopicCommand option (KIP-427) (#30) TICKET = KAFKA-7904 LI_DESCRIPTION = This patch includes broker metrics for AtMinIsr and modified unit tests. However, it doesn't include topiccommand related change from the original cherry-picked commit because of extra dependency. EXIT_CRITERIA = HASH [31d191f] ORIGINAL_DESCRIPTION = - Add `AtMinIsrPartitionCount` metric to `ReplicaManager` - Add `AtMinIsr` metric to `Partition` - Add `--at-min-isr-partitions` describe `TopicCommand` option https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=103089398 Author: Kevin Lu <lu.kevin@berkeley.edu> Author: lu.kevin@berkeley.edu <kelu@paypal.com> Reviewers: Gwen Shapira Closes apache#6421 from KevinLiLu/KAFKA-7904 (cherry picked from commit 31d191f)
AtMinIsrPartitionCountmetric toReplicaManagerAtMinIsrmetric toPartition--at-min-isr-partitionsdescribeTopicCommandoptionhttps://cwiki.apache.org/confluence/pages/viewpage.action?pageId=103089398
Committer Checklist (excluded from commit message)