×

Outcast index in a distributed file system

  • US 10,120,868 B2
  • Filed: 02/11/2014
  • Issued: 11/06/2018
  • Est. Priority Date: 09/04/2013
  • Status: Active Grant
First Claim
Patent Images

1. A method, comprising:

  • receiving, by a processing device of a first server, an indication that a first replica stored on the first server is to be modified in view of a second replica stored on a second server, wherein the first replica and the second replica are replicas of a same file, wherein the first server comprises metadata for a plurality of replicas including the first replica and the second replica, wherein the metadata comprises a plurality of bitmaps, wherein each of the plurality of bitmaps is to indicate a state of one replica, wherein each of the plurality of bitmaps comprises a set of bits, wherein each bit in the set of bits corresponds to a pending count of updates the one replica missed;

    updating, by the processing device, a first metadata associated with the first replica to indicate an outcast state of the first replica;

    checking whether the first replica has a pending lock for a modification process to modify the first replica in view of the second replica;

    determining that the modification process is still in progress when the first replica has the pending lock;

    determining that the modification process ended abnormally when the first replica does not have the pending lock and the first metadata indicates the outcast state of the first replica;

    repairing the first replica from a third replica in view of the determining that the modification process ended abnormally; and

    updating the first metadata to remove the outcast state of the first replica in response to an indication that the modification process of the first replica is complete or that the first replica has been repaired.

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