Skip to content

when the client host have more than 2 ip address, the ClientConfig get the last one ipv4 always. It will make some unpredictable result.#41

Closed
tain198127 wants to merge 18 commits into
apache:masterfrom
tain198127:master
Closed

when the client host have more than 2 ip address, the ClientConfig get the last one ipv4 always. It will make some unpredictable result.#41
tain198127 wants to merge 18 commits into
apache:masterfrom
tain198127:master

Conversation

@tain198127

@tain198127 tain198127 commented Jan 12, 2017

Copy link
Copy Markdown

When the client to start the producer, the producer will use the last one ipv4 address as default ip.but if the os have more than one ipv4 address, it will get some unexpected result.
Although ClientConfig provide a method setClientIP to avoid this issue, but in production environment with cluster ,every producer need to set a ip address, it will make some mistake.

@lizhanhui

lizhanhui commented Jan 12, 2017

Copy link
Copy Markdown
Contributor

Please follow instructions here.

@zhouxinyu

Copy link
Copy Markdown
Member

IMO, this feature is not necessary, clientIP is only used in bornHost.

@zhouxinyu

zhouxinyu commented Jan 13, 2017

Copy link
Copy Markdown
Member

Hi @tain198127, could you please use English in the pr title and commit logs?

Also please refer to here and here before sending a pull request to RocketMQ.

@vongosling

vongosling commented Jan 13, 2017

Copy link
Copy Markdown
Member

@tain198127 Could you follow other PR[1] style at first ?

[1] #5

@tain198127 tain198127 changed the title 网络环境复杂时,会造成选择了不正确的网络 ip 地址。 when the client host have more than 2 ip address, the ClientConfig get the last one ipv4 always. It will make some unpredictable result. Jan 16, 2017
…ketmq

# Conflicts:
#	broker/src/test/java/org/apache/rocketmq/broker/BrokerControllerTest.java
#	rocketmq-store/src/test/resources/logback-test.xml
#	store/src/main/java/org/apache/rocketmq/store/MappedFileQueue.java
#	store/src/main/java/org/apache/rocketmq/store/ha/HAService.java
#	store/src/main/java/org/apache/rocketmq/store/index/IndexService.java
#	store/src/test/java/org/apache/rocketmq/store/MappedFileQueueTest.java
#	store/src/test/java/org/apache/rocketmq/store/index/IndexFileTest.java
get lastest version from apache rocket
This reverts commit 2892a77.
@vongosling

Copy link
Copy Markdown
Member

please follow us PR guide, modify your topic and ensure all testing validity

@asfgit asfgit closed this in 0661ac8 Jan 20, 2017
lizhanhui pushed a commit to lizhanhui/rocketmq that referenced this pull request Jun 25, 2019
lizhanhui pushed a commit to lizhanhui/rocketmq that referenced this pull request Jun 25, 2019
lizhanhui pushed a commit to lizhanhui/rocketmq that referenced this pull request Jun 25, 2019
pingww pushed a commit that referenced this pull request Aug 26, 2022
Increase test case and improve code coverage
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.

7 participants