zookeeper icon indicating copy to clipboard operation
zookeeper copied to clipboard

ZOOKEEPER-4708: recreateSocketAddresses before comparing addresses

Open showuon opened this issue 2 years ago • 14 comments

Found 2 places we will compare the addresses to check if there's any major change, but the addresses comparison will compare hostname + IP address + port. If the DNS is slow, there might be chances that the hostname and port are identical, but the IP address has <unresolved> V.S. x.x.x.x. So the result will be the unexpected unequal.

This PR tried to recreateSocketAddresses before comparing the addresses to fix the issue.

Note: No tests added because it didn't change any logic. Just need to make sure it passes the existing tests.

showuon avatar Jul 31 '23 11:07 showuon

Sonatype Lift is retiring

Sonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console. We are extremely grateful and thank you for your support over the years.

📖 Read about the impacts and timeline

sonatype-lift[bot] avatar Jul 31 '23 11:07 sonatype-lift[bot]

@symat @eolivelli , similar to https://github.com/apache/zookeeper/pull/2040 and https://github.com/apache/zookeeper/pull/1524. Call for review. Thanks.

showuon avatar Jul 31 '23 11:07 showuon

@anmolnar , thanks for the comment. Tests added.

Note: It's not easy to test the slow DNS scenario, so I tried to verify the method is invoked as expected, alternatively.

Thanks.

showuon avatar Aug 13 '23 12:08 showuon

@anmolnar , please take a look when available. Thanks.

showuon avatar Aug 28 '23 07:08 showuon

@anmolnar , please take a look when available. Thanks.

showuon avatar Oct 03 '23 06:10 showuon

@showuon You have checkstyle validation error

Error:  /home/runner/work/zookeeper/zookeeper/zookeeper-server/src/test/java/org/apache/zookeeper/server/quorum/LeaderBeanTest.java:43:1: Extra separation in import group before 'org.apache.jute.OutputArchive' [ImportOrder]

anmolnar avatar Oct 18 '23 12:10 anmolnar

@showuon You have checkstyle validation error

Error:  /home/runner/work/zookeeper/zookeeper/zookeeper-server/src/test/java/org/apache/zookeeper/server/quorum/LeaderBeanTest.java:43:1: Extra separation in import group before 'org.apache.jute.OutputArchive' [ImportOrder]

@anmolnar , fixed. Please also help backport to 3.8/3.9 branch if no other comments. Thank you very much.

showuon avatar Oct 18 '23 12:10 showuon

The compatibility test failed on java 11 in 3.6.3, but passed on java 8 in 3.6.3. I think it should be fine. Thanks.

showuon avatar Oct 19 '23 06:10 showuon

We have encountered an issue affecting over 50% of the test cases within our testing infrastructure. We would greatly appreciate it if we could move forward with addressing this issue.

^^ @eolivelli, @symat, @tisonkun, and @ztzg

I appreciate your attention to this matter in advance.

see-quick avatar Oct 23 '23 09:10 see-quick

@eolivelli @symat @tisonkun @ztzg, please take a look when available. Thanks.

showuon avatar Dec 05 '23 03:12 showuon

@eolivelli @symat @tisonkun @ztzg, please take a look. Thanks.

showuon avatar Dec 13 '23 11:12 showuon

@eolivelli @symat @tisonkun @ztzg, please take a look. Thanks.

showuon avatar Jan 11 '24 12:01 showuon

Will this be merged anytime soon? We would greatly appreciate if this was merged as our infrastructure is greatly affected by this issue

karthick-ponnusamy avatar Apr 10 '24 20:04 karthick-ponnusamy