Bin/bookkeeper shell decommissionbookie 命令需要停任务吗? 命令跑了一天还在跑

环境有个BOOKIE想下线。停止bookie后执行bin/bookkeeper shell decommissionbookie,数据大概10G不到。但是命令一直没有运行完。
2022-07-05T08:13:34,169+0800 [main] INFO org.apache.bookkeeper.client.BookKeeperAdmin - Count of Ledgers which need to be rereplicated: 34407
2022-07-05T08:23:42,133+0800 [main] INFO org.apache.bookkeeper.client.BookKeeperAdmin - Count of Ledgers which need to be rereplicated: 34277
2022-07-05T08:33:50,423+0800 [main] INFO org.apache.bookkeeper.client.BookKeeperAdmin - Count of Ledgers which need to be rereplicated: 34195
2022-07-05T08:43:58,583+0800 [main] INFO org.apache.bookkeeper.client.BookKeeperAdmin - Count of Ledgers which need to be rereplicated: 34113
2022-07-05T08:54:06,824+0800 [main] INFO org.apache.bookkeeper.client.BookKeeperAdmin - Count of Ledgers which need to be rereplicated: 33992
2022-07-05T09:04:14,630+0800 [main] INFO org.apache.bookkeeper.client.BookKeeperAdmin - Count of Ledgers which need to be rereplicated: 33869
2022-07-05T09:14:23,270+0800 [main] INFO org.apache.bookkeeper.client.BookKeeperAdmin - Count of Ledgers which need to be rereplicated: 33765
2022-07-05T09:24:31,940+0800 [main] INFO org.apache.bookkeeper.client.BookKeeperAdmin - Count of Ledgers which need to be rereplicated: 33717
2022-07-05T09:34:40,225+0800 [main] INFO org.apache.bookkeeper.client.BookKeeperAdmin - Count of Ledgers which need to be rereplicated: 33618
2022-07-05T09:44:48,919+0800 [main] INFO org.apache.bookkeeper.client.BookKeeperAdmin - Count of Ledgers which need to be rereplicated: 33556

通常bookie节点下线,10G左右的数据在10min左右可以rereplicated完成。
你这个跑了一天没停止显然是不合理的,可以检查下broker和bookie节点的log中有无异常,
同时可以确认下磁盘的读写性能。

没有显示异常的。最后这个命令跑了2天,直至手工停止,下线失败

可以贴点broker和bookie的日志出来看看,从你的描述我们可能不太好判断

这个不好贴。下线节点的bookie是没有日志的。其他bookie和broker节点都有业务一直在跑。日志都非常大。有没有关键词可以找一下?

你们当前遇到的情况的确不太好判断问题。

可以尝试以下方式下线bookie节点:
#1.强制设置待下线bookie节点为只读,这样新的数据就不会写到这个bookie,等待旧的数据被消费完
vim conf/bookkeeper.conf

readOnlyModeEnabled=true
forceReadOnlyBookie=true

#2.重启bookkeeper

#3.等待一段时间后(10G左右的数据在10min),执行节点下线命令