Techniques are described herein for handling lock-related inconsistencies.
As mentioned above, such inconsistencies occur when two or more sets of
lock information, relating to the same resource, convey inconsistent
information about locks requested and/or granted on that resource. In
general, the techniques involve causing the locally-stored lock
information about a resource to be sent to the master node of the
resource. The master node of the resource compares the lock information
thus received against the lock information maintained by the master node.
Based on the comparison, the master node determines how to resolve the
lock-related inconsistency, and sends messages to those nodes that need
to change their local lock information for the resource. Once all of the
lock information has been made consistent, the resource made available
for access.