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

optimize: optimize ZookeeperConfiguration log #2549

Merged
merged 6 commits into from
Apr 15, 2020
Merged

optimize: optimize ZookeeperConfiguration log #2549

merged 6 commits into from
Apr 15, 2020

Conversation

lightClouds917
Copy link
Contributor

Ⅰ. Describe what this PR did

optimize:print the error message when getConfig from zk

Ⅱ. Does this pull request fix one issue?

optimize #2548

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

Copy link
Contributor

@objcoding objcoding 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
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -117,7 +117,8 @@ public String getConfig(String dataId, String defaultValue, long timeoutMills) {
try {
return future.get(timeoutMills, TimeUnit.MILLISECONDS);
} catch (Exception e) {
LOGGER.error("getConfig {} is error or timeout,return defaultValue {}", dataId, defaultValue);
LOGGER.error("getConfig {} is error or timeout,return defaultValue {},error : {}",
Copy link
Member

Choose a reason for hiding this comment

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

after comma add space?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

after comma add space?

ok,I will fix

@codecov-io
Copy link

Codecov Report

Merging #2549 into develop will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #2549      +/-   ##
=============================================
- Coverage      51.43%   51.42%   -0.02%     
+ Complexity      2807     2806       -1     
=============================================
  Files            553      553              
  Lines          17699    17699              
  Branches        2089     2089              
=============================================
- Hits            9103     9101       -2     
  Misses          7743     7743              
- Partials         853      855       +2     
Impacted Files Coverage Δ Complexity Δ
...o/seata/server/coordinator/DefaultCoordinator.java 54.50% <0.00%> (-0.50%) 29.00% <0.00%> (ø%)
...in/java/io/seata/server/session/GlobalSession.java 84.86% <0.00%> (-0.46%) 71.00% <0.00%> (-1.00%)

Copy link
Member

@jsbxyyx jsbxyyx 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

@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 changed the title optimize:print the error message when getConfig from zk optimize: optimize ZookeeperConfiguration log Apr 15, 2020
@slievrly slievrly merged commit f4659ea into apache:develop Apr 15, 2020
@slievrly slievrly added this to the 1.2.0 milestone Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants