×

Testing of lock managers in computing environments

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

1. A system for testing a locking mechanism, the system comprising:

  • at least one memory; and

    at least one processor in communication with the at least one memory, the at least one processor configured to obtain instructions from the memory that cause the at least one processor to perform a method comprising;

    distributing, among a plurality of processes, lock assignment information for a set of files;

    acquiring, based on the distributed lock assignment information and by a first process of the plurality of processes, a lock on a first portion of the set of files;

    acquiring, based on the distributed lock assignment information and by a second process of the plurality of processes, a lock on a second portion of the set of files;

    distributing, among the plurality of processes, lock testing information for the set of files;

    attempting, based on the distributed lock testing information and by the first process, to acquire a lock on the second portion;

    comparing a result of the attempted lock and an expected result of the attempted lock; and

    evaluating, based at least in part on the comparing, the locking mechanism, wherein the method further comprises;

    distributing, among the plurality of processes, second lock assignment information for the set of files;

    determining, by the first process and using the first portion as an input into an update algorithm included in the distributed second lock assignment information, that a lock is to be acquired on a third portion of the set of files, wherein the update algorithm is configured to output that the lock on the third portion is a next lock to be acquired by the first process after relinquishing the lock on the first portion based on the fact that first process currently has the lock on the first portion;

    relinquishing, by the first process and based on the update algorithm, the lock on the first portion; and

    acquiring, by the first process and based on the determination, the lock on the third portion after the relinquishment of the lock on the first portion.

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