Skip to content

KAFKA-20989: Add Notification Cleaners to Migrating Controller Servers - #23284

Open
yismail-stripe wants to merge 1 commit into
apache:3.9from
yismail-stripe:KAFKA-20989-zk-notification-cleanup
Open

KAFKA-20989: Add Notification Cleaners to Migrating Controller Servers#23284
yismail-stripe wants to merge 1 commit into
apache:3.9from
yismail-stripe:KAFKA-20989-zk-notification-cleanup

Conversation

@yismail-stripe

@yismail-stripe yismail-stripe commented Aug 26, 2026

Copy link
Copy Markdown

Summary

As reported in KAFKA-20989, the KRaft controller creates persistent sequential notifications for config changes and ACL changes when in migration mode.

These nodes are normally deleted after 15 minutes by ZkNodeChangeNotificationListener, which is started by ZooKeeper-mode brokers.

However if brokers enter KRaft mode in dual-write phase, no cleanup listener remains while the migration controller continues dual-writing.

While clusters remain in this mode, /config/changes, /kafka-acl-changes, and /kafka-acl-extended-changes keep growing without deletion.

To solve this, we run the same listeners that the brokers used to purge old notifications but on controllers that are in migration mode.

Test Plan

  • Changes are covered by tests

@yismail-stripe yismail-stripe changed the title [KAFKA-20989] Add Notification Cleaners to Migrating Controller Servers KAFKA-20989: Add Notification Cleaners to Migrating Controller Servers Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant