pulsar
pulsar copied to clipboard
[fix][broker] fix can not cleanup heartbeat data if scaling down broker
Main Issue: https://github.com/apache/pulsar/issues/21324
Motivation
Fix can not cleanup heartbeat data if scaling down broker
Modifications
when close the broker, delete heartbeat resource.
If the broker restart, the heartbeat resource would be recreate.
Verifying this change
- [] Make sure that the change passes the CI checks.
Documentation
- [ ]
doc
- [ ]
doc-required
- [x]
doc-not-needed
- [ ]
doc-complete
Matching PR in forked repository
PR in forked repository: https://github.com/TakaHiR07/pulsar/pull/21