-
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
[bug] launch: fix timeout mechanism when TN service startup #16761
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Review 🔍
|
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/3450
What this PR does / why we need it:
fix timeout mechanism when TN service startup:
5m timeout for total wait and 5s timeout for each request.
PR Type
Bug fix
Description
startTNServiceCluster
function to return an error instead of nil.newHAKeeperClient
function to handle discovery and service addresses more robustly.Changes walkthrough 📝
launch.go
Fix timeout and retry mechanism for TN service startup
cmd/mo-service/launch.go
startTNServiceCluster
function to return anerror instead of nil.
and a total wait time of 5 minutes in
waitHAKeeperReady
.hakeeper_client.go
Improve client connection logic in HAKeeper client
pkg/logservice/hakeeper_client.go
newHAKeeperClient
to handle the discovery address and serviceaddresses more robustly.
created.