-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
bugfix: add exception system exit code when rpcServer init. #1906
Conversation
…cServer init exception.
Codecov Report
@@ Coverage Diff @@
## develop #1906 +/- ##
=============================================
- Coverage 55.43% 55.41% -0.03%
- Complexity 2406 2408 +2
=============================================
Files 428 428
Lines 14346 14351 +5
Branches 1699 1699
=============================================
- Hits 7953 7952 -1
- Misses 5677 5684 +7
+ Partials 716 715 -1
|
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.
LGTM
try { | ||
rpcServer.init(); | ||
} catch (Throwable e) { | ||
e.printStackTrace(); |
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 not use LOGGER.error instead of e.printStackTrace();
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.
LGTM
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.
LGTM.
…cServer init exception.
Ⅰ. Describe what this PR did
We need to tell the system something about code(eg:-1) when tc server abnormal exit system
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews