You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Galen O'Sullivan (JIRA)" <ji...@apache.org> on 2016/11/29 22:49:58 UTC

[jira] [Created] (GEODE-2151) PartitionedRegionLoadModelJUnitTest fails depending on /etc/hosts config

Galen O'Sullivan created GEODE-2151:
---------------------------------------

             Summary: 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
            Reporter: Galen O'Sullivan


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
(v6.3.4#6332)