Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2249

CENTRAL_LOCK2: reconciliation protocol on coord change

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 4.0.13
    • None
    • None

      Implement a reconciliation protocol when the coord changes: instead of backing up all lock information to another member, the new coord asks all members for their current lock information (acquired locks, pending acquire and release requests) and constructs the lock table accordingly.
      This is described in https://issues.jboss.org/browse/JGRP-2234 (later comments).

      Comment from 2234:
      Clients need to have the following information:

      • Locks they acquired
      • Pending lock requests; locks which they want to acquire but for which they haven't yet received a LOCK_GRANTED response
      • Pending lock release requests; lock that have been released, but for which no RELEASE_LOCK_OK response has been received
      • Ditto for conditions, but we'll tackle them in a second stage

      The reconciliation protocol queues all new requests on the coord and asks all members for their lock information. Once the coord has received this information from all members, it applies this and then drains the queue of pending requests.

      It is important that the requests are ordered per member, ie. a release(L) cannot come before a lock(L).

      Since CENTRAL_LOCK allows for multiple members to hold the same lock in a split brain scenario, we need to think about how to handle merging where the coord detects that multiple members hold the same lock...

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: