×

Resolving write conflicts in a dispersed storage network

  • US 9,766,810 B2
  • Filed: 02/01/2016
  • Issued: 09/19/2017
  • Est. Priority Date: 02/26/2013
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for execution by a storage unit of a set of storage units in a dispersed storage network (DSN), the method comprises:

  • receiving, by the storage unit, a respective write request of a first set of write requests, wherein a first computing device sent the first set of write requests regarding a first set of encoded data slices of a plurality of sets of encoded data slices to the storage units of the DSN, wherein a data object is divided into a plurality of data segments and the plurality of data segments is dispersed storage error encoded to produce the plurality of sets of encoded data slices, wherein the first set of write requests functions as a write lock request for the entire data object;

    determining, by the storage unit, whether the storage unit has writing of the data object currently locked;

    sending, by the storage unit, a write lock response regarding the data object to the first computing device, wherein the write lock response is associated with a request to write a particular encoded data slice to storage;

    when a number of write lock responses, associated with requests to write a particular encoded data slice to storage, indicate a write lock of the data object for the first computing device and the number is equal to or exceeds a write lock response threshold, receive, by the storage unit, respective write requests from each set of a plurality of sets of write requests, wherein the plurality of sets of write requests includes write requests for remaining sets of encoded data slices of the plurality of sets of encoded data slices;

    receiving, substantially concurrently with the receiving of the respective write request of the first set of write requests, a second respective write request of another first set of write requests, wherein a second computing device sent the other first set of write requests regarding another first set of encoded data slices of a second plurality of sets of encoded data slices to the storage units of the DSN, wherein the second computing device divided the data object into a second plurality of data segments and dispersed storage error encoded the second plurality of data segments to produce the second plurality of sets of encoded data slices, wherein the other first set of write requests functions as a write lock request for the data object by the second computing device;

    when the respective write request of the first set of write requests was received prior to the second respective write request of another first set of write requests, locking the data object for the first computing device and generating the write lock response indicating the write lock of the data object for the first computing device; and

    when the respective write request of the first set of write requests was received after the second respective write request of another first set of write requests, locking the data object for the second computing device and generating the write lock response indicating the write lock of the data object for the second computing device.

View all claims
  • 5 Assignments
Timeline View
Assignment View
    ×
    ×