bookie will be down (out of memory), when there are a lots of ledgers under /ledgers/underreplication/ledgers to replication
- Dominant language
- Java
- Stars
- 2k
- Forks
- 976
- Avg merge
- 6d 15h
- Merged PRs (30d)
- 7
Description
why is there many times register ,that will make bookie out of memory
When i change 3 3 2 to 2 2 2 after reduce bookie nodes from 5 to 2
ZK has a lots of ledgers mate data infos, and the 2 bookie nodes had old data.
Running bookies cluster that has two nodes, without running any producers or consumers.
some minutes or hours later , watching the memory info of one bookie using jstat:

and dump info using mat

the class ReadOnlyLedgerHandle will register a listener to AbstractZkLedgerManager's listeners field when init. some times later listeners filed will occupy a lot of heap memory

Contributor guide
Assessment
This issue has not been assessed yet.