kafka leader -1

问题
[2023-06-01 09:59:16,781] ERROR [Broker id=0] Received LeaderAndIsrRequest with correlation id 1 from controller 1 epoch 2596 for partition cdctest_topic-0 (last update controller epoch 2596) but cannot become follower since the new leader -1 is unavailable. (state.change.logger)
root@kafka-1:/# kafka-topics --describe --topic cdctest_topic --zookeeper kafka-zookeeper-headless:2181
Topic:cdctest_topic     PartitionCount:1        ReplicationFactor:1     Configs:
        Topic: cdctest_topic    Partition: 0    Leader: -1      Replicas: 0     Isr: 0
[zk: localhost:2181(CONNECTED) 4] get /brokers/topics/cdctest_topic/partitions/0/state
{"controller_epoch":2596,"leader":0,"version":1,"leader_epoch":4044,"isr":[0]}

### 修改zookeeper topic 分区状态

[zk: localhost:2181(CONNECTED) 4] set /brokers/topics/cdctest_topic/partitions/0/state {"controller_epoch":2596,"leader":0,"version":1,"leader_epoch":4044,"isr":[0]}

root@kafka-1:/# kafka-topics --describe --topic cdctest_topic --zookeeper kafka-zookeeper-headless:2181
Topic:cdctest_topic     PartitionCount:1        ReplicationFactor:1     Configs:
        Topic: cdctest_topic    Partition: 0    Leader: 0       Replicas: 0     Isr: 0
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值