Status

Current state: Under Discussion

Discussion thread: here

JIRA: KAFKA-16561

Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

Motivation

When using MirrorMaker2 to synchronize data between a source cluster and a target cluster, an issue arises if a topic is deleted on the source cluster. Due to consumers having automatic topic creation enabled, the deleted topic gets quickly recreated. However, this recreated topic is not the same as the deleted one, leading to ambiguity and potential issues.

Public Interfaces

Change the default value of "allow.auto.create.topics" to false.

Proposed Changes

Set default value of "allow.auto.create.topics" to false for MM2 consumer.

Compatibility, Deprecation, and Migration Plan

  • What impact (if any) will there be on existing users?
    • No obvious impact.
  • If we are changing behavior, how will we phase out the older behavior?
    • Just remove it, I think the older behavior is irrational.
  • If we need special migration tools, describe them here.
  • When will we remove the existing behavior?

Test Plan

This change is relatively small and has very limited impact on existing code, and unit testing is sufficient.

Rejected Alternatives

An alternative solution is to disable this option manually, but I'm afraid it's hard to imagine a scenario where you need to enable it.

  • No labels