Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-3325

ConsistentHashV1IntegrationTest.testCorrectBalancingOfKeysAfterNodeKill random failures

    XMLWordPrintable

Details

    Description

      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:

      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)
      

      Attachments

        Activity

          People

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: