I'm receiving the following assertion error when compiling:

org.apache.geode.internal.cache.partitioned.PartitionedRegionLoadModelJUnitTest
> testRedundancySatisfactionPreferRemoteIp FAILED

    java.lang.AssertionError: expected:<[Create[member=10.
64.251.218(1639)<ec>:3,bucketId=0], Create[member=10.64.251.218(1639)
*<ec>:3*,bucketId=1], Create[member=10.64.251.218(1639)<ec>:3,bucketId=2]]>
but was:<[Create[member=10.64.251.218(1639)<ec>:3,bucketId=0],
Create[member=10.64.251.218(1639)*<ec>:1*,bucketId=1],
Create[member=10.64.251.218(1639)<ec>:3,bucketId=2]]>

        at org.junit.Assert.fail(Assert.java:88)

        at org.junit.Assert.failNotEquals(Assert.java:834)

        at org.junit.Assert.assertEquals(Assert.java:118)

        at org.junit.Assert.assertEquals(Assert.java:144)

        at org.apache.geode.internal.cache.partitioned.
PartitionedRegionLoadModelJUnitTest.testRedundancySatisfactionPref
erRemoteIp(PartitionedRegionLoadModelJUnitTest.java:227)


I've tracked the problem down to being related to entires in my /etc/hosts
file.  Trying to address a slow startup of the JVM and DNS lookups, I
followed the suggestion on this site:

https://thoeni.io/post/macos-sierra-java/
By changing my line:

*127.0.0.1 localhost*

to

*127.0.0.1 localhost kduling-mbro*

it causes the test above to fail consistently on my home network.

Reply via email to