You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by Kevin Duling <kd...@pivotal.io> on 2016/11/18 21:00:36 UTC

PartitionedRegionLoadModelJUnitTest > testRedundancySatisfactionPreferRemoteIp FAILED

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.

Re: PartitionedRegionLoadModelJUnitTest > testRedundancySatisfactionPreferRemoteIp FAILED

Posted by Kevin Duling <kd...@pivotal.io>.
No, I don't run with a DNS here.


On Fri, Nov 18, 2016 at 1:17 PM, Anthony Baker <ab...@pivotal.io> wrote:

> On your home network is kduling-mbpro a valid hostname?
>
> Anthony
>
> > On Nov 18, 2016, at 1:00 PM, Kevin Duling <kd...@pivotal.io> wrote:
> >
> > 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.
>
>

Re: PartitionedRegionLoadModelJUnitTest > testRedundancySatisfactionPreferRemoteIp FAILED

Posted by Anthony Baker <ab...@pivotal.io>.
On your home network is kduling-mbpro a valid hostname?

Anthony

> On Nov 18, 2016, at 1:00 PM, Kevin Duling <kd...@pivotal.io> wrote:
> 
> 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.