-
Notifications
You must be signed in to change notification settings - Fork 276
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 check invalid binds #16958
fix check invalid binds #16958
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #https://github.com/matrixorigin/MO-Cloud/issues/3490 #https://github.com/matrixorigin/MO-Cloud/issues/3530
#https://github.com/matrixorigin/MO-Cloud/issues/3521 #https://github.com/matrixorigin/MO-Cloud/issues/3512
What this PR does / why we need it:
fix check invalid binds
PR Type
Bug fix, Tests
Description
isRetryError
in thecheckInvalidBinds
method to prevent potential errors.TestRetryValidateService
to include a nil check before callingisRetryError
.TestValidateService
to validate service responses and ensure correct behavior.Changes walkthrough 📝
lock_table_allocator.go
Add nil check before retry error validation
pkg/lockservice/lock_table_allocator.go
isRetryError
incheckInvalidBinds
method.
rpc_test.go
Update and add tests for service validation
pkg/lockservice/rpc_test.go
TestRetryValidateService
to include a nil check before callingisRetryError
.TestValidateService
to validate service responses.