[Bugs] [Bug 1688115] New: Data heal not checking for locks on source & sink(s) before healing

bugzilla at redhat.com bugzilla at redhat.com
Wed Mar 13 07:29:20 UTC 2019


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

            Bug ID: 1688115
           Summary: Data heal not checking for locks on source & sink(s)
                    before healing
           Product: GlusterFS
           Version: mainline
            Status: ASSIGNED
         Component: replicate
          Assignee: ksubrahm at redhat.com
          Reporter: ksubrahm at redhat.com
                CC: bugs at gluster.org, pkarampu at redhat.com,
                    ravishankar at redhat.com
  Target Milestone: ---
    Classification: Community



Description of problem:

During data heal, we try to take locks on all the bricks, but we do not check
for whether we got the lock on at least the source and one of the sink bricks
before starting the heal.
In function afr_selfheal_data_block(), we only check for the lock count to be
equal to or greater than the number of sinks. There can be a case where we have
2 source bricks and one sink and the locking is successful on only the source
brick(s). In this case we continue with the healing on sink without having a
lock, which is not correct.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Bugs mailing list