×

Log forwarding to avoid deadlocks during parallel log replay in asynchronous table replication

  • US 9,965,359 B2
  • Filed: 03/13/2015
  • Issued: 05/08/2018
  • Est. Priority Date: 11/25/2014
  • Status: Active Grant
First Claim
Patent Images

1. A computer implemented method for removing a deadlock during replication from distributed source tables to a replica node, comprising:

  • detecting, by at least one processor, a deadlock at a parallel log replayer at a replica node;

    selecting, by the at least one processor, a first replication log entry from a queue of a plurality of queues of the parallel log replayer based on whether removing the first replication log entry from the queue removes the deadlock, wherein the first replication log entry comprises an operation type, a table identifier, and a transaction identifier for a changed row;

    inserting, by the at least one processor, the first replication log entry into a waiting queue;

    removing, by the at least one processor, the first replication log entry from the queue of the plurality of queues of the parallel log replayer;

    replaying, by the at least one processor, a second replication log entry from the queue of the plurality of queues at the parallel log replayer after removing the first replication log entry from the queue of the plurality of queues of the parallel log replayer; and

    replaying, by the at least one processor, the first replication log entry from the waiting queue at the parallel log replayer after replaying the second replication log entry;

    wherein at least one of the detecting, selecting, inserting, removing, replaying the second replication log entry, and replaying the first replication log entry are performed by one or more computers.

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