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: override eureka getHostName() return ipAddress #2192

Merged
merged 2 commits into from
Jan 22, 2020

Conversation

bao-hp
Copy link
Contributor

@bao-hp bao-hp commented Jan 16, 2020

Ⅰ. Describe what this PR did

在 通过eureka作为注册中心过程中发现注册到 eureka 中,健康检查和状态等地址中获取的均为服务器的hostname而非对应ip。通过 CustomEurekaInstanceConfig 中重写getHostName()方法修改为获取ip来解决该问题。

Ⅱ. 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 Jan 16, 2020

Codecov Report

Merging #2192 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop    #2192   +/-   ##
==========================================
  Coverage      54.37%   54.37%           
  Complexity      2469     2469           
==========================================
  Files            447      447           
  Lines          14749    14749           
  Branches        1734     1734           
==========================================
  Hits            8020     8020           
  Misses          5968     5968           
  Partials         761      761

@zjinlei zjinlei added the first-time contributor first-time contributor label Jan 16, 2020
Copy link
Contributor

@lightClouds917 lightClouds917 left a comment

Choose a reason for hiding this comment

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

LGTM

@apache apache deleted a comment from bao-hp Jan 16, 2020
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.

@slievrly slievrly changed the title override eureka getHostName() return ipAddress optimize: override eureka getHostName() return ipAddress Jan 21, 2020
Copy link
Contributor

@zjinlei zjinlei left a comment

Choose a reason for hiding this comment

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

LGTM

@zjinlei zjinlei merged commit d496d1b into apache:develop Jan 22, 2020
@slievrly slievrly added this to the 1.1.0 milestone Feb 3, 2020
booogu pushed a commit to booogu/seata that referenced this pull request Feb 12, 2020
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

6 participants