[ 
https://issues.apache.org/jira/browse/AMBARI-24203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated AMBARI-24203:
------------------------------------
    Labels: pull-request-available  (was: )

> Improve Kafka service check to check for under-replicated partitions
> --------------------------------------------------------------------
>
>                 Key: AMBARI-24203
>                 URL: https://issues.apache.org/jira/browse/AMBARI-24203
>             Project: Ambari
>          Issue Type: Bug
>          Components: stacks
>    Affects Versions: 2.7.0
>            Reporter: Yolanda M. Davis
>            Assignee: Yolanda M. Davis
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.7.0
>
>
> During Ambari Rolling Upgrade, we invoke Kafka Service check to ensure that 
> Kafka is healthy. The current implementation only does basic topic 
> creation/deletion. We need to extend the implementation to check for number 
> of under-replicated partitions.
> We have this support in kafka-topics.sh script which is already used in the 
> kafka service check script. We need to extend above script to call below 
> command
> {noformat}
> sh kafka-topics.sh --describe --zookeeper localhost:2181 
> --under-replicated-partitions
> {noformat}
> If the command output is empty, then there are no under replicated partotions.
> If the output contains "Topic:" string, then there are some under replicated 
> partitions, we can fail the service check.
> {noformat}
> sh kafka-topics.sh --describe --zookeeper localhost:2181 
> --under-replicated-partitions
>  Topic: TEST Partition: 0 Leader: 1 Replicas: 1,2 Isr: 1
>  Topic: TEST Partition: 1 Leader: 1 Replicas: 2,1 Isr: 1{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to