apache / apache/pulsar

bookie decommissionbookie failed

Open
#21,607 2 comments 0 reactions 0 assignees View on GitHub
type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.

### Version

pulsar:2.4.0
java:1.8.0_212

### Minimal reproduce step

for example:
pulsar cluster info:192.168.2.11/12/13/14/15

now,i hope decommissionbookie 192.168.2.15:3181

first:
192.168.2.15: stop broker and stop bookie

seconds:
192.168.2.11: bin/bookkeeper shell decommissionbookie 192.168.2.15:3181
INFO
org.apache.bookkeeper.client.BookKeeperAdmin - Resettiing LostBookieRecoveryDelay value: 0, to kickstart au
org.apache.bookkeeper.client.BookKeeperAdmin - Countt of Ledgers which need to be rereplicated: 770
org.apache.bookkeeper.client.BookKeeperAdmin - Countt of Ledgers which need to be rereplicated: 120
org.apache.bookkeeper,client.BookKeepecAdmin - Count of Ledgers which need tobe rereplicated: 120
.....几小时内一直输出如下内容,且数量不在减少........
org.apache.bookkeeper,client.BookKeepecAdmin - Count of Ledgers which need tobe rereplicated: 120

### What did you expect to see?

zk node info:
[zk: localhost:2181(CONNECTED) 4] ls /ledgers/underreplication/ledgers/0000/0000/0109/6177
[]
but i exec listunderreplicated all bookie node
bin/bookkeeper shell listunderreplicated |grep -i ledgerID have no ledger output

### What did you see instead?

zk node info:
[zk: localhost:2181(CONNECTED) 4] ls /ledgers/underreplication/ledgers/0000/0000/0109/6177
[]
but i exec listunderreplicated all bookie node
bin/bookkeeper shell listunderreplicated |grep -i ledgerID have no ledger output

### Anything else?

_No response_

### Are you willing to submit a PR?

- [X] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the decommissionbookie command on Pulsar 2.4.0 with Java 1.8.0_212, then compare its BookKeeperAdmin progress output with listunderreplicated and the ZooKeeper underreplication path shown in the report. Done means decommissionbookie completes or clearly reports why the count remains unchanged while listunderreplicated shows no ledger.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.