-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-3291 - Possible inconsistency in DLT topic naming convention #3292
Conversation
Standardize the creation of DLT topics to use a consistent naming convention, preferably using a dash suffix, such as "-dlt". This change ensures compatibility and avoids conflicts when transitioning between different retry solutions.
While I concur with you that there is an inconsistency in the DLT topic creation and the need to fix it, I wonder if breaking the current |
@sobychacko I agree that this change may cause problems for users of previous versions. However, these problems could be resolved quickly. The spring-kafka framework may automatically create the new topic or may throw an error indicating that the topic does not exist. It also makes sense to add this to the “What’s New” section. I also believe that this should be considered a MINOR update (3.3.0), as it affects the functionality of the system. And thanks for the feedback. |
Could you add the note as part of the what-new section? In it, indicate that if any users want the |
@sobychacko Done. |
Standardize DLT Topic Naming Convention
Issue Reference
Description:
This pull request addresses the inconsistency in the naming convention of DLT topics when using different retry mechanisms. By standardizing the suffix to "-dlt", we aim to ensure compatibility and avoid conflicts during migration between retry solutions.
Expected Behavior:
DLT topics should be created consistently, using a standardized suffix, preferably with a dash, for example, all ending with "-dlt".
Current Behavior:
By default, DLT topics are created with ".dlt" at the end. However, when using the retry non-blocking solution, topics are created with "-dlt". This causes inconsistency in the naming of the topics.
Context:
This inconsistency can cause issues when migrating from one solution to another. For example, if a user wants to migrate from a solution that uses blocking retry (which creates topics with ".dlt") to a non-blocking retry solution (which creates topics with "-dlt"), the old ".dlt" topics will become obsolete. The new system will no longer communicate with these topics due to the difference in naming.
Additionally, Kafka recommends not mixing dashes and dots in topic names to avoid conflicts. This mix can lead to issues in identifying and managing topics, further complicating system maintenance and monitoring.
Solution:
Standardize the creation of DLT topics to use a consistent naming convention, preferably using a dash suffix, such as "-dlt". This will ensure compatibility and avoid conflicts when transitioning between different retry solutions.
Implementation Details:
Please review the changes and provide feedback. If there are any suggestions or concerns regarding this implementation, I am open to further discussion.