+++ This bug was initially created as a clone of Bug #1717819 +++ Description of problem: We currently don't have a roll-back/undoing of post-ops if quorum is not met. Though the FOP is still unwound with failure, the xattrs remain on the disk. Due to these partial post-ops and partial heals (healing only when 2 bricks are up), we can end up in metadata split-brain purely from the afr xattrs point of view i.e each brick is blamed by atleast one of the others for metadata. These scenarios are hit when there is frequent connect/disconnect of the client/shd to the bricks.
REVIEW: https://review.gluster.org/24155 (Cluster/afr: Don't treat all bricks having metadata pending as split-brain) posted (#1) for review on release-6 by Karthik U S
REVIEW: https://review.gluster.org/24155 (Cluster/afr: Don't treat all bricks having metadata pending as split-brain) merged (#2) on release-6 by hari gowtham