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 not to change status of repair-queue's finished entry #728

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

morimoto-cybozu
Copy link
Contributor

This commit is for the following situation:

  • there is a finished entry in the repair queue, especially failed one
  • a new entry with the same target address is queued
  • the target machine becomes healthy

The results of health check are indexed by the target machine's address,
not by the entry ID.
Though health check is not executed for a finished entry, check for
another entry with the same target address can change the status of
the failed entry into "succeeded."
This commit prevents it.

Signed-off-by: morimoto-cybozu [email protected]

This commit is for the following situation:
* there is a finished entry in the repair queue, especially failed one
* a new entry with the same target address is queued
* the target machine becomes healthy

The results of health check are indexed by the target machine's address,
not by the entry ID.
Though health check is not executed for a finished entry, check for
another entry with the same target address can change the status of
the failed entry into "succeeded."
This commit prevents it.

Signed-off-by: morimoto-cybozu <[email protected]>
@morimoto-cybozu morimoto-cybozu self-assigned this Apr 25, 2024
Copy link
Contributor

@zeroalphat zeroalphat left a comment

Choose a reason for hiding this comment

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

LGTM

@morimoto-cybozu morimoto-cybozu merged commit b6cfd26 into main Apr 30, 2024
7 checks passed
@morimoto-cybozu morimoto-cybozu deleted the fix-repair-queue-status-transition branch April 30, 2024 01:19
morimoto-cybozu added a commit that referenced this pull request May 21, 2024
Signed-off-by: morimoto-cybozu <[email protected]>
morimoto-cybozu added a commit that referenced this pull request May 22, 2024
Signed-off-by: morimoto-cybozu <[email protected]>
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