-
Notifications
You must be signed in to change notification settings - Fork 279
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 can restart cn when tn crash #17115
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/3516 #https://github.com/matrixorigin/MO-Cloud/issues/3537
What this PR does / why we need it:
fix can restart cn when tn crash
PR Type
Bug fix, Tests
Description
lock_table_allocator.go
.lock_table_keeper.go
.log.go
.service.go
.service_test.go
.Changes walkthrough 📝
lock_table_allocator.go
Enhance logging and status handling in lock table allocator
pkg/lockservice/lock_table_allocator.go
getStatus
method toserviceBinds
.lock_table_keeper.go
Add error logging for lock service status in keeper
pkg/lockservice/lock_table_keeper.go
log.go
Introduce and enhance logging functions for service status
pkg/lockservice/log.go
service.go
Improve logging and status setting in service
pkg/lockservice/service.go
logCanLockOnService
call.setStatus
.service_test.go
Add tests for service restart and lock status issues
pkg/lockservice/service_test.go