ivanyu opened a new pull request #9395:
URL: https://github.com/apache/kafka/pull/9395


   This commit adds a new replication policy for MirrorMaker 2, 
`LegacyReplicationPolicy`. This policy imitates MirrorMaker 1 behavior of not 
renaming replicated topics. The exception is made for `heartbeats` topic, that 
is replicated according to `DefaultReplicationPolicy`.
   
   Avoiding renaming topics brings a number of limitations, among which the 
most important one is the impossibility of detecting replication cycles. This 
makes cross-replication using `LegacyReplicationPolicy` effectively impossible. 
See `LegacyReplicationPolicy` Javadoc for details.
   
   A new method `canTrackSource` is added to `ReplicationPolicy`. Its result 
indicates if the replication policy can track back to the source topic of a 
topic. It is needed to allow detecting target topics work when 
`LegacyReplicationPolicy` is used.
   
   On the testing side, the tests have the same strategy as for 
`DefaultReplicationPolicy` with nicessary adjustments (e.g. no active/active 
replication is tested).
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to