×

Method and apparatus for correct and complete transactions in a fault tolerant distributed database system

  • US 6,202,067 B1
  • Filed: 04/07/1998
  • Issued: 03/13/2001
  • Est. Priority Date: 04/07/1998
  • Status: Expired due to Term
First Claim
Patent Images

1. In a system comprised of at least one master processor and a plurality of slave processors wherein each processor accesses and controls a database associated with each processor, a method for compensating for a failure condition involving either said at least one master processor or any one of said plurality of slave processors, said method comprising the steps of:

  • a) recording the last completed database update transaction at said each processor;

    b) creating a journal operatively associated with said at least one master database processor for recording steps of a predetermined number of database update transactions generated by said at least one master database processor;

    c) recording said steps of database update transactions in said journal;

    d) creating a plurality of first timers, each of said plurality of slave processors having associated with it, at least one of said plurality of first timers;

    e) creating a plurality of second timers, each of said plurality of slave processors having associated with it, at least one of said plurality of second timers;

    f) starting said at least one of said plurality of first timers at the beginning of an update transaction;

    g) sending a predetermined message from a first one of said plurality of slave processors to said at least one master processor at the end of an update transaction;

    h) starting said second timer associated with said first one of said plurality of slave processors when said predetermined message is sent to said at least one master processor;

    i) in the event of failure of any one of said plurality of slave processors;

    A) copying to said failed processor from said journal all database update transactions subsequent to the last database update of the previously failed processor;

    j) in the event of failure to said at least one master processor;

    A) detecting the expiration of said at least one of said plurality of first timers prior to the expiration of said at least one of a plurality of second timers and thereafter;

    1) aborting said current update transaction;

    2) sending an abort message to said plurality of slave database processors by said slave processor associated with the expired at least one of said plurality of first timers;

    B) detecting the expiration of said at least one of said plurality of second timers and thereafter committing said current update transaction.

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