-
Notifications
You must be signed in to change notification settings - Fork 218
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
Feature: prevent creating topics just after deletion ( #1739) #1918
base: master
Are you sure you want to change the base?
Conversation
see allegro#1739 Deletion creates a node in the group /deletion_time, stores the time there Throws an exception if not enough time has passed (5 min) all existing unit tests pass (except the docker) pending: - updating with latest upstream - manual testing in UI and running docker test - adding unit tests for the added functionality - checking integration tests - configuration of the time delay
Test cycles are taking a while in my local hardware. To better debug this will proceed with creating some additional tests to test this enhancement specifically. |
existing tests use a shared group which cross-contaminates tests so added a mitigation
Checked the failing tests and they look transient and unrelated:
|
I am in the process of merging with the latest upstream changes and there are some extensive changes in the ZK code to take into account, I'll move this into a draft while I'm working on it |
Deleting and recreating topics very quickly (<5min) means there is still stale metadata in the kafka producer, which creates problems (see #1739) and frontend instances need to be restarted for stuck messages to be sent.
Deletion creates a node in the group called
/deletion_time
, stores the time of deletion there. All creation and updates are still within a transaction.Throws an exception if not enough time has passed (5 min hardcoded ATM).
Functionality has been added at the topic level and left group impl agnostic of those details as much as possible (except deletion and empty logic).
Input requested
/deletion_time
or more verbose/kafka_topics_deletion_time
), ordeleted
vsremoved
ZookeeperTopicRepositoryTest
tests used a shared group that cross-contaminated tests, added a mitigationenhancement
label to PRhacktoberfest-accepted
tag so it's counted before the end of the monthDone
ZookeeperTopicRepositoryTest
now do not share stategoogle-java-format -i $(find . -name ZookeeperTopicRepository.java)
Pending:
see if the malformed topic can be deleted in master