Skip to content

Commit

Permalink
BugFix: Fix the bug in the FE clone scheduling that causes an infinit…
Browse files Browse the repository at this point in the history
…e loop

Signed-off-by: sevev <[email protected]>
  • Loading branch information
sevev committed Sep 2, 2024
1 parent 2aa706b commit 0ca2955
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,9 @@ public boolean chooseDestReplicaForVersionIncomplete(Map<Long, PathSlot> backend
} else if (replica.getLastSuccessVersion() > replica.getLastFailedVersion()) {
chosenReplica = replica;
break;
} else if (replica.getVersion() < chosen.getVersion()) {
// we should first repair the lower version replica
chosenReplica = replica;
} else if (replica.getLastFailedVersion() < chosenReplica.getLastFailedVersion()) {
// it's better to select a low last failed version replica
chosenReplica = replica;
Expand Down

0 comments on commit 0ca2955

Please sign in to comment.