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

Fixed issue where clusterAddressMap did not remove this instance after the instance was offline #1378

Merged
merged 4 commits into from
Aug 1, 2019

Conversation

wanghuizuo
Copy link
Contributor

Ⅰ. Describe what this PR did

  1. Fixed issue where clusterAddressMap did not remove this instance after the instance was offline.
  2. remove EurekaRegistryException, because EurekaRegistryException is RuntimeException.
  3. add log.

Ⅱ. 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

* 如果clusterAddressMap存在key App1
* Eureka返回的Apps是App2, App3, refreshCluster后clusterAddressMap还会存在App1
*
* 场景:
* Eureka注册App1,App2,refreshCluster后clusterAddressMap存在App1,App2
* App1下线,Eureka返回App2,refreshCluster后clusterAddressMap存在App1,App2
@codecov-io
Copy link

codecov-io commented Aug 1, 2019

Codecov Report

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

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #1378      +/-   ##
=============================================
+ Coverage       45.8%   45.82%   +0.01%     
  Complexity      1655     1655              
=============================================
  Files            343      343              
  Lines          12337    12337              
  Branches        1556     1556              
=============================================
+ Hits            5651     5653       +2     
+ Misses          6051     6050       -1     
+ Partials         635      634       -1
Impacted Files Coverage Δ Complexity Δ
...server/store/file/FileTransactionStoreManager.java 47.38% <0%> (+0.34%) 19% <0%> (ø) ⬇️
...very/registry/zk/ZookeeperRegisterServiceImpl.java 64.56% <0%> (+0.78%) 24% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 684d5d0...1a25942. Read the comment docs.

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.

Thanks.i left some reviews.

xingfudeshi and others added 3 commits August 1, 2019 14:20
1. do no import *.
2. LOGGER.error("Eureka event listener refreshCluster error:{}", e.getMessage(), e);
3. fix map capacity
4. set use default capacity
1. if instances is empty do not put
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

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 f1342bc into apache:develop Aug 1, 2019
@wangliang181230 wangliang181230 added this to the 0.8.1 milestone Aug 9, 2021
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

5 participants