×

Testing of lock managers in computing environments

  • US 10,614,040 B2
  • Filed: 10/23/2017
  • Issued: 04/07/2020
  • Est. Priority Date: 04/04/2017
  • Status: Active Grant
First Claim
Patent Images

1. A method for iteratively testing a lock manager configured for locking a set of files stored in a file system, the method comprising:

  • acquiring, based on a lock assignment plan and by a first process of a plurality of processes, a first plurality of locks on a first plurality of portions of the set of files;

    performing, based on a lock testing plan and by a second process of the plurality of processes, a first lock verification for a first portion of the plurality of portions;

    comparing a first result of the first lock verification and a first expected result of the first lock verification;

    transitioning, based on an updated lock assignment plan and by the first process, from the first plurality of locks to a second plurality of locks on a second plurality of portions of the set of files, wherein the transitioning comprises;

    determining, by the first process and using the first plurality of portions as inputs into an update algorithm incorporated in the updated lock assignment plan, that the second plurality of locks are to be acquired on the second plurality of portions;

    relinquishing, by the first process and based on the update algorithm, the first plurality of locks; and

    acquiring, by the first process and based on the determination, the second plurality of locks;

    performing, based on an updated lock testing plan and by the second process, a second lock verification for a second portion of the second plurality of portions;

    comparing a second result of the second lock verification and a second expected result of the second lock verification;

    acquiring, based on the lock assignment plan and by a third process of a plurality of processes, a third plurality of locks on a third plurality of portions of the set of files;

    transitioning, based on the updated lock assignment plan and by the third process, from the third plurality of locks to a fourth plurality of locks on a fourth plurality of portions of the set of files, wherein the transitioning from the third plurality of locks to the fourth plurality of locks comprises;

    determining, by the third process and using the third plurality of portions as inputs into a second update algorithm incorporated in the updated lock assignment plan, that the fourth plurality of locks are to be acquired on the fourth plurality of portions;

    relinquishing, by the third process and based on the second update algorithm, the third plurality of locks; and

    acquiring, by the third process and based on the determination that the fourth plurality of locks are to be acquired, the fourth plurality of locks; and

    evaluating, based at least in part on the comparing the first result and first expected result and the comparing the second result and the second expected result, the lock manager, wherein the update algorithm is a Simple Up update algorithm and the second update algorithm is a Greedy Down update algorithm.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×