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

br: refactor error handle mechanism to tolerant unexpect kv errors. #48646

Merged
merged 16 commits into from
Dec 8, 2023
Prev Previous commit
Next Next commit
fix lint
  • Loading branch information
3pointer committed Dec 6, 2023
commit c8b880e891d14deb2583867438a61a0b8f047639
4 changes: 2 additions & 2 deletions br/pkg/utils/retry_test.go
Original file line number Diff line number Diff line change
@@ -114,8 +114,8 @@ func TestHandleErrorMsg(t *testing.T) {
require.Equal(t, expectedResult, actualResult)

// Test retry too many times
actualResult = ec.HandleErrorMsg(msg, uuid)
actualResult = ec.HandleErrorMsg(msg, uuid)
_ = ec.HandleErrorMsg(msg, uuid)
_ = ec.HandleErrorMsg(msg, uuid)
expectedResult = utils.ErrorResult{utils.GiveUpStrategy, "unknown error and retry too many times, give up"}
actualResult = ec.HandleErrorMsg(msg, uuid)
require.Equal(t, expectedResult, actualResult)