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

MagicKey sometimes fails to find a segment

    XMLWordPrintable

Details

    • Undefined

    Description

      Tests using new MagicKey(primary, backup) may randomly fail because SyncConsistentHashFactory assigns the segments randomly and doesn't really try to cover all primary+backup combinations.

      java.lang.IllegalStateException: Could not find any segment owned by Cache 'dist'@Test-NodeA, [Cache 'dist'@Test-NodeB], primary segments: {17-34 47-48 50 55-65 73 105-123 140-147 158-161}, backup segments: {Cache 'dist'@Test-NodeB={1-2 43-46 51 74-76 88-104 152-155 176-188 196-204 220-221 230-239}}
      

      There are quite a few affected tests in CI and in my local test logs:

      org.infinispan.conflict.impl.BaseMergePolicyTest.testPartitionMergePolicy
      org.infinispan.distribution.DistSkipRemoteLookupBatchingTest.testSkipLookupOnGetWhileBatching
      org.infinispan.partitionhandling.DelayedAvailabilityUpdateTest.testDelayedAvailabilityUpdate
      org.infinispan.partitionhandling.OptimisticTxPartitionAndMergeDuringRollbackTest.testSplitBeforeRollback
      org.infinispan.partitionhandling.PessimisticTxPartitionHandlingReleaseLockTest.testLockReleased
      org.infinispan.partitionhandling.StreamDistPartitionHandlingTest.testUsingIteratorButPartitionOccursBeforeRetrievingRemoteValues
      org.infinispan.partitionhandling.ThreeWaySplitAndMergeTest.testSplitAndMerge
      org.infinispan.partitionhandling.TwoWaySplitAndMergeTest.testSplitAndMerge
      org.infinispan.statetransfer.ReadAfterLostDataTest.test
      org.infinispan.statetransfer.TxDuringStateTransferTest.testConditionalReplace

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: