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

Insufficient owners with putIfAbsent during rebalance

    XMLWordPrintable

Details

    Description

      Here is test scenario:

      • DIST numOwners=2, start with 3 nodes cluster then join 1 node during load
      • HotRod putIfAbsent accesses from 40 threads (1 process, 1 remote cache instance), 40000 entries total

      After the test run, the numberOfEntries on each node are:

      • node1: 20074
      • node2: 19888
      • node3: 20114
      • node4: 18885

      Total is 78961, 1039 entries are missing. No error on HotRod client side so 80000 entries should be there.

      Let's take a look at example missing entry, hash(thread01key151) = 7c29bccb.

      Current CH: owners(7c29bccb) are [node1, node2]
      Pending CH: owners(7c29bccb) are [node1, node2, node4]
      Balanced CH: owners(7c29bccb) are [node1, node4]

      The events sequence is:

      • hotrod -> node1
      • node1 -> node2, node4
      • node2 committed entry
      • node4 performed clustered get before write, got a value from node2 and will not commit the entry because this node thinks it's not changed/created
      • node1 committed entry
      • node2 invalidates the entry because it's no longer an owner

      Result owners(7c29bccb) are only node1 and node4 is missing. This entry may be completely lost by further rebalances when node4 is donor for this segment.

      Attachments

        Issue Links

          Activity

            People

              dberinde@redhat.com Dan Berindei
              rhn-support-tkimura Takayoshi Kimura
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: