Skip to content
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

Merged
merged 2 commits into from
Nov 18, 2019

Conversation

objcoding
Copy link
Contributor

…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

@codecov-io
Copy link

codecov-io commented Nov 17, 2019

Codecov Report

Merging #1906 into develop will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@              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
Impacted Files Coverage Δ Complexity Δ
server/src/main/java/io/seata/server/Server.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...server/store/file/FileTransactionStoreManager.java 56.96% <0%> (-0.95%) 29% <0%> (ø)
...o/seata/server/coordinator/DefaultCoordinator.java 48.41% <0%> (+0.39%) 28% <0%> (+1%) ⬆️
...in/java/io/seata/server/session/GlobalSession.java 85.02% <0%> (+0.48%) 68% <0%> (+1%) ⬆️

@slievrly slievrly changed the title bugfix: Add exception exit system return code System.exit(-1) when rpcServer init. bugfix: add exception system exit code when rpcServer init. Nov 18, 2019
Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@slievrly slievrly added the first-time contributor first-time contributor label Nov 18, 2019
try {
rpcServer.init();
} catch (Throwable e) {
e.printStackTrace();
Copy link
Contributor

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();

Copy link
Contributor

@l81893521 l81893521 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@xingfudeshi xingfudeshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@xingfudeshi xingfudeshi merged commit de456ac into apache:develop Nov 18, 2019
@slievrly slievrly added this to the 1.0 milestone Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first-time contributor first-time contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants