Skip to content

Conversation

@yhs0092
Copy link
Member

@yhs0092 yhs0092 commented Dec 5, 2017

@yhs0092
Copy link
Member Author

yhs0092 commented Dec 5, 2017

seems that test configuration in integration-tests need to be updated with this issue. Checking file ...

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 86.901% when pulling d872842 on yhs0092:JAV-551_address_binding_logic_optimization into 8fc1d15 on ServiceComb:master.

@yhs0092
Copy link
Member Author

yhs0092 commented Dec 5, 2017

After modifying some configuration in integration-tests, CI has passed. Evaluation on this modification is needed to avoid losing effectiveness of these tests or other side effects.

address: http://127.0.0.1:30100
rest:
address: 0.0.0.0:8080
address: 127.0.0.1:8080
Copy link
Contributor

@liubao68 liubao68 Dec 5, 2017

Choose a reason for hiding this comment

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

为什么需要修改这里的地址?不修改会影响用例正常运行吗?

Copy link
Member Author

Choose a reason for hiding this comment

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

因为现在监听IP的时候不允许监听0.0.0.0了。我们的测试里面全都是provider配的监听0.0.0.0,consumer连接用的127.0.0.1,现在这样会连不上。
其他的测试我已经改成consumer端用NetUtils获取本机IP了。但是有的测试consumer是从配置文件中获取provider的IP做连接的,不好改,所以我就改成两方都用127.0.0.1了。

LOGGER.error("host {} is unknown.", ip);
return null;
}
if (inetAddress.isAnyLocalAddress()) {
Copy link
Member

Choose a reason for hiding this comment

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

Is there any security reason for this change?
We need to tell add the release-note to tell user they cannot use "0.0.0.0" any more.

Copy link
Member Author

Choose a reason for hiding this comment

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

I misunderstood the requirement. I've communicated with liubao and jimin, and ensure that our current mechanism is right. This pull request will be closed later.

@yhs0092 yhs0092 closed this Dec 6, 2017
@yhs0092 yhs0092 deleted the JAV-551_address_binding_logic_optimization branch July 23, 2018 12:20
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.

4 participants