×

SYSTEM AND METHOD FOR LOG CONFLICT DETECTION AND RESOLUTION IN A DATA STORE

  • US 20140244581A1
  • Filed: 05/05/2014
  • Published: 08/28/2014
  • Est. Priority Date: 01/17/2012
  • Status: Active Grant
First Claim
Patent Images

1. A system, comprising:

  • a plurality of computing nodes, each comprising at least one processor and memory, wherein the plurality of computing nodes is configured to implement a data storage service;

    wherein the data storage service maintains data on behalf of one or more storage service clients, wherein maintaining the data comprises storing two or more replicas of the data on respective computing nodes in the system, wherein the two or more replicas make up a replica group, wherein at most one of the replicas in the replica group can act as a master replica for the replica group at a time, and wherein replicas in the replica group that are not acting as the master replica act as slave replicas in the replica group;

    wherein one of the replicas in the replica group is configured to;

    receive a log record to be appended to a log maintained by the replica, wherein the log comprises a plurality of log records, wherein each log record indicates an update to the data being maintained on behalf of the storage service clients or an update to the membership of the replica group, and wherein each log record comprises metadata associated with the update or the replica group, wherein the metadata comprises;

    a sequence number that was assigned to the log record when the log record was generated and that comprises a value in a strictly increasing series;

    a lock generation identifier that indicates the acquisition of an external lock for the replica group, wherein the lock identifier value was fixed by the replica that generated the log record at a time when the replica that generated the log record was acting as master for the group and owned the external lock for the replica group;

    an epoch identifier that was assigned to the log record when the log record was generated and that indicates that the log record was produced during a particular time period when a given replica was acting as master replica for the replica group;

    oran indication of an epoch change;

    compare metadata in the received log record to metadata in a log record that was previously appended to the log;

    determine an action to be taken in response to receiving the log record dependent on results of the comparison; and

    take the determined action.

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