poorbarcode opened a new pull request, #25915:
URL: https://github.com/apache/pulsar/pull/25915
### Motivation
Replication is stuck due to the Topic GC
- Enable binary way replication between the `primary cluster` and `backup
cluster`
- `primary cluster`: Publishing messages into `primary cluster`
- `backup cluster`: No consumer/producer is registered.
- `backup cluster`: Check topic GC
- No subscriptions
- No producers except `remote producer`
- The topic should be GC
- Disable replication
- The topic will not be deleted since the remote-side producer is still
registered
- `backup cluster`: the topic GC progress is waiting for the remote-producer
to be disconnected.
- It will not be executed since no one wants to delete the topic.
- `backup cluster`: backlog increases because the replicator was closed
- Although the messages copied from the remote end will not be copied back
repeatedly, the replicator still needs to perform a check and then mark delete.
### Modifications
- Do not trigger topic GC if replication is still active
- `brokerReplicationInactiveThresholdSeconds` defines how to determine a
replicator is active
### Does this pull request potentially affect one of the following parts:
<!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
*If the box was checked, please highlight the changes*
- [ ] Dependencies (add or upgrade a dependency)
- [ ] The public API
- [ ] The schema
- [ ] The default values of configurations
- [ ] The threading model
- [ ] The binary protocol
- [ ] The REST endpoints
- [ ] The admin CLI options
- [ ] The metrics
- [ ] Anything that affects deployment
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]