[Bugs] [Bug 1215265] Fixes for data self-heal in ec

bugzilla at redhat.com bugzilla at redhat.com
Fri May 8 12:15:05 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1215265



--- Comment #46 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/10384 committed in master by Vijay Bellur
(vbellur at redhat.com) 
------
commit fc199e1b6f9423b4dc0c9b34bf894ad66ffafabf
Author: Pranith Kumar K <pkarampu at redhat.com>
Date:   Sat Apr 25 15:58:09 2015 +0530

    cluster/ec: data heal implementation for ec

    Data self-heal:
    1) Take inode lock in domain 'this->name:self-heal' on 0-0 range (full
file),
       So that no other processes try to do self-heal at the same time.
    2) Take inode lock in domain 'this->name' on 0-0 range (full file),
    3) perform fxattrop+fstat and get the xattrs on all the bricks
    3) Choose the brick with ec->fragment number of same version as source
    4) Truncate sinks
    5) Unlock lock taken in 2)
    5) For each block take full file lock, Read from sources write to the
sinks, Unlock
    6) Take full file lock and see if the file is still sane copy i.e. File
didn't become unusable while the bricks are offline.
       Update mtime to before healing
    7) xattrop with -ve values of 'dirty' and difference of highest and its own
       version values for version xattr
    8) unlock lock acquired in 6)
    9) unlock lock acquired in 1)

    Change-Id: I6f4d42cd5423c767262c9d7bb5ca7767adb3e5fd
    BUG: 1215265
    Signed-off-by: Pranith Kumar K <pkarampu at redhat.com>
    Reviewed-on: http://review.gluster.org/10384
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Vijay Bellur <vbellur at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=0QPU6PPTEO&a=cc_unsubscribe


More information about the Bugs mailing list