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

Fix channel closing issue during replay procedure #412

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

mardim91
Copy link
Contributor

@mardim91 mardim91 commented Mar 7, 2025

A channel is used between the infradb and the task manager is order to inform taks manager that a replay procedure has been finished. By closing the channel when the replay procedure is concluded the task manager is informed this way and continues processing tasks.

The closing of the channel in this case is not the right procedure to inform the task manager. The reason is that in an event that the replay procedure is triggered again in the future infradb will try to close again the channel in order to notify the task manager and that can cause panic.

This PR contains the fix for that.

@mardim91 mardim91 requested a review from a team as a code owner March 7, 2025 14:53
@artek-koltun artek-koltun merged commit 572b394 into opiproject:main Mar 7, 2025
15 checks passed
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.

2 participants