-
Notifications
You must be signed in to change notification settings - Fork 169
Log enhancement: return error message when getting assignment servers and log exception when initializing #64
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
Conversation
…ver assignments from coordinator
|
Is this pr a compatible improvement? |
| this.coordinatorConf = coordinatorConf; | ||
| initialization(); | ||
|
|
||
| try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope all initializing exception message can be recorded into log files. Sometimes due to abnormal configuration, server or coordinator will exit directly no any log recorded, which is hard to debug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There will be error msg in the stdout file when the server occur exception. But it's also acceptable change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. stdout message will lost when using ansible to deploy uniffle cluster.
I think it's a compatible chang. |
Could you test the compatibility? Maybe we need auto compatibility test in our project. |
|
Tested, it's OK @jerqi |
jerqi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I verify the compatibility again. It's ok. LGTM. Thanks @zuston
What changes were proposed in this pull request?
Log enhancement: return error message when getting assignment servers and log exception when initializing
Why are the changes needed?
To be easy to find the cause of error.
Does this PR introduce any user-facing change?
No
How was this patch tested?
No need.