Skip to content
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

remove streams delete and extend unit tests #2737

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

FxKu
Copy link
Member

@FxKu FxKu commented Aug 21, 2024

#2733 fixed a bug with stream duplicates created on every operator restart. To facilitate the cleanup the operator was deleting every extra stream it found based on the filter labels.

In general, the operator should be careful with what it deletes. Therefore this PR removes the delete call again assuming that duplicates should not exist only if somebody adds them manually with the same labels which is unlikely to happen. Sorting is not supported in go client so we would not be able to tell which stream gets synced in the cluster struct (same for deletions).

I have split the update streams unit test to have a dedicated test only for removal.

@FxKu FxKu added the minor label Aug 21, 2024
@FxKu FxKu added this to the 1.14.0 milestone Aug 22, 2024
@idanovinda
Copy link
Member

👍

1 similar comment
@FxKu
Copy link
Member Author

FxKu commented Dec 16, 2024

👍

@FxKu FxKu merged commit 301462c into master Dec 16, 2024
11 of 12 checks passed
@FxKu FxKu deleted the remove-stream-repair branch December 16, 2024 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants