You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Anthony Baker (JIRA)" <ji...@apache.org> on 2018/04/20 19:57:17 UTC
[jira] [Closed] (GEODE-2151) PartitionedRegionLoadModelJUnitTest
fails depending on /etc/hosts config
[ https://issues.apache.org/jira/browse/GEODE-2151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anthony Baker closed GEODE-2151.
--------------------------------
> 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)