[ 
https://issues.apache.org/jira/browse/GEODE-2151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16508956#comment-16508956
 ] 

Galen O'Sullivan commented on GEODE-2151:
-----------------------------------------

the workaround can cause issues with local servers not finding your canonical 
hostname.

> PartitionedRegionLoadModelJUnitTest fails depending on /etc/hosts config
> ------------------------------------------------------------------------
>
>                 Key: GEODE-2151
>                 URL: https://issues.apache.org/jira/browse/GEODE-2151
>             Project: Geode
>          Issue Type: Bug
>          Components: membership, messaging
>            Reporter: Galen O'Sullivan
>            Priority: Major
>
> I was getting the following error while running the unit tests:
> {code}
> org.apache.geode.internal.cache.partitioned.PartitionedRegionLoadModelJUnitTest
>  > testRedundancySatisfactionPreferRemoteIp FAILED
>     java.lang.AssertionError: 
> expected:<[Create[member=192.168.1.50(41227)<ec>:3,bucketId=0], 
> Create[member=192.168.1.50(41227)<ec>:3,bucketId=1], 
> Create[member=192.168.1.50(41227)<ec>:3,bucketId=2]]> but 
> was:<[Create[member=192.168.1.50(41227)<ec>:3,bucketId=0], 
> Create[member=192.168.1.50(41227)<ec>:1,bucketId=1], 
> Create[member=192.168.1.50(41227)<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.testRedundancySatisfactionPreferRemoteIp(PartitionedRegionLoadModelJUnitTest.java:227)
> 2931 tests completed, 1 failed, 10 skipped
> {code}
> My `/etc/hosts` file had the following line:
> {code}
> 127.0.0.1 localhost gosullivan-mbpro
> {code}
> Changing it to this fixed the problem:
> {code}
> 127.0.0.1 localhost
> 255.255.255.255 broadcasthost
> ::1             localhost
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to