Feature: prevent creating topics just after deletion ( #1739) #1918
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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