You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When failovering a broken PD member, this line gives us an error even if no PD member fails (i.e. pdDeletedFailureReplicas=0). When we inspect the error log, we find that the error message "PD failover replicas (0) reaches the limit (0), skip failover" is constantly written to the operator log and is very confusing to user. However, there is actually no error if no PD member fails. We believe when pdDeletedFailureReplicas=0, the operator should not throw the error message "PD failover replicas (0) reaches the limit (0), skip failover".
This PR provides a straightforward fix for this problem.
What is changed and how does it work?
We fix it by adding one more condition in the if statement in this line to check whether pdDeletedFailureReplicas is larger than 0, as illustrated below:
What problem does this PR solve?
When failovering a broken PD member, this line gives us an error even if no PD member fails (i.e.
pdDeletedFailureReplicas=0
). When we inspect the error log, we find that the error message "PD failover replicas (0) reaches the limit (0), skip failover" is constantly written to the operator log and is very confusing to user. However, there is actually no error if no PD member fails. We believe whenpdDeletedFailureReplicas=0
, the operator should not throw the error message "PD failover replicas (0) reaches the limit (0), skip failover".This PR provides a straightforward fix for this problem.
What is changed and how does it work?
We fix it by adding one more condition in the if statement in this line to check whether
pdDeletedFailureReplicas
is larger than 0, as illustrated below:Code changes
Tests
This is a simple fix and we suppose no test above is needed.
Side effects
Related changes
Release Notes
Please refer to Release Notes Language Style Guide before writing the release note.
The text was updated successfully, but these errors were encountered: