Skip to content

fix: event marking bug #2763

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

Merged
merged 1 commit into from
Apr 14, 2025
Merged

fix: event marking bug #2763

merged 1 commit into from
Apr 14, 2025

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Apr 11, 2025

Signed-off-by: Attila Mészáros [email protected]

@openshift-ci openshift-ci bot requested review from metacosm and xstefank April 11, 2025 12:13
@csviri
Copy link
Collaborator Author

csviri commented Apr 11, 2025

Will try to add an unit test for this, but it might be the case that this did caused a real issue or just in extremely rare circumstances

Copy link
Collaborator

@xstefank xstefank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However, I don't see the full implications of this change, but if you say it's a bug I believe you.

@@ -196,7 +196,7 @@ private void handleEventMarking(Event event, ResourceState state) {
// event as below.
markEventReceived(state);
}
} else if (!state.deleteEventPresent() || !state.processedMarkForDeletionPresent()) {
} else if (!state.deleteEventPresent() && !state.processedMarkForDeletionPresent()) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't we fix this already? I guess not but it rings a bell.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't recall anything, but that does not mean we did not :)

Signed-off-by: Attila Mészáros <[email protected]>
@csviri csviri merged commit 4225645 into main Apr 14, 2025
25 checks passed
@csviri csviri deleted the marking-bug branch April 14, 2025 15:47
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.

3 participants