[infinispan-issues] [JBoss JIRA] (ISPN-3325) ConsistentHashV1IntegrationTest.testCorrectBalancingOfKeysAfterNodeKill random failures

Dan Berindei (JIRA) jira-events at lists.jboss.org
Wed Jul 17 01:53:26 EDT 2013


Dan Berindei created ISPN-3325:
----------------------------------

             Summary: ConsistentHashV1IntegrationTest.testCorrectBalancingOfKeysAfterNodeKill random failures
                 Key: ISPN-3325
                 URL: https://issues.jboss.org/browse/ISPN-3325
             Project: Infinispan
          Issue Type: Feature Request
          Components: Test Suite
    Affects Versions: 5.3.0.Final
            Reporter: Dan Berindei
            Assignee: Mircea Markus
             Fix For: 6.0.0.Final


The test adds a 5th server, but {{ConsistentHashV1IntegrationTest.getHitServer()}} assumes that the requests hit one of the original 4 servers. Because the server CH to client CH is imperfect in protocol versions 1.1 and 1.2, some of the requests may instead hit server 5, causing a {{NullPointerException}}:

{noformat}
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
	at java.util.ArrayList.get(ArrayList.java:322)
	at org.infinispan.client.hotrod.ConsistentHashV1IntegrationTest.getHitServer(ConsistentHashV1IntegrationTest.java:204)
	at org.infinispan.client.hotrod.ConsistentHashV1IntegrationTest.runTest(ConsistentHashV1IntegrationTest.java:129)
	at org.infinispan.client.hotrod.ConsistentHashV1IntegrationTest.testCorrectBalancingOfKeysAfterNodeKill(ConsistentHashV1IntegrationTest.java:160)
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list