[
https://issues.apache.org/jira/browse/CASSANDRA-12812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15590596#comment-15590596
]
Stefania commented on CASSANDRA-12812:
--------------------------------------
The host name is included in the inet address string that is used as host id,
so even if the loopback address is returned, the host name is still quite
random.
I've fixed the host id in this patch:
||3.X||trunk||
|[patch|https://github.com/stef1927/cassandra/tree/12812-3.X]|[patch|https://github.com/stef1927/cassandra/tree/12812]|
|[testall|http://cassci.datastax.com/view/Dev/view/stef1927/job/stef1927-12812-3.X-testall/]|[testall|http://cassci.datastax.com/view/Dev/view/stef1927/job/stef1927-12812-testall/]|
|[dtest|http://cassci.datastax.com/view/Dev/view/stef1927/job/stef1927-12812-3.X-dtest/]|[dtest|http://cassci.datastax.com/view/Dev/view/stef1927/job/stef1927-12812-dtest/]|
I'm multiplexing for trunk
[here|https://cassci.datastax.com/job/stef1927-testall-multiplex/40/], to rule
out any other randomness not due to the host id.
> testall failure in
> org.apache.cassandra.dht.tokenallocator.RandomReplicationAwareTokenAllocatorTest.testExistingCluster
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-12812
> URL: https://issues.apache.org/jira/browse/CASSANDRA-12812
> Project: Cassandra
> Issue Type: Bug
> Reporter: Sean McCarthy
> Assignee: Stefania
> Labels: test-failure
>
> example failure:
> http://cassci.datastax.com/job/trunk_testall/1239/testReport/org.apache.cassandra.dht.tokenallocator/RandomReplicationAwareTokenAllocatorTest/testExistingCluster/
> {code}
> Error Message
> Expected max unit size below 1.2500, was 1.2564
> {code}
> {code}
> Stacktrace
> junit.framework.AssertionFailedError: Expected max unit size below 1.2500,
> was 1.2564
> at
> org.apache.cassandra.dht.tokenallocator.AbstractReplicationAwareTokenAllocatorTest.grow(AbstractReplicationAwareTokenAllocatorTest.java:657)
> at
> org.apache.cassandra.dht.tokenallocator.RandomReplicationAwareTokenAllocatorTest.grow(RandomReplicationAwareTokenAllocatorTest.java:26)
> at
> org.apache.cassandra.dht.tokenallocator.AbstractReplicationAwareTokenAllocatorTest.testExistingCluster(AbstractReplicationAwareTokenAllocatorTest.java:545)
> at
> org.apache.cassandra.dht.tokenallocator.AbstractReplicationAwareTokenAllocatorTest.testExistingCluster(AbstractReplicationAwareTokenAllocatorTest.java:518)
> at
> org.apache.cassandra.dht.tokenallocator.RandomReplicationAwareTokenAllocatorTest.testExistingCluster(RandomReplicationAwareTokenAllocatorTest.java:38)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)