Bug 1729847

Summary: Fix spurious failure of tests/bugs/replicate/bug-1717819-metadata-split-brain-detection.t
Product: [Community] GlusterFS Reporter: Karthik U S <ksubrahm>
Component: replicateAssignee: Karthik U S <ksubrahm>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1729895 (view as bug list) Environment:
Last Closed: 2019-07-15 08:48:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1729895    

Description Karthik U S 2019-07-15 06:18:27 UTC
Description of problem:

Test case bug-1717819-metadata-split-brain-detection.t is failing in the below tests:
22:19:26 not ok 49 , LINENUM:125
22:19:26 FAILED COMMAND: [ 1 == 2 ]
22:19:26 not ok 50 , LINENUM:126
22:19:26 FAILED COMMAND: [ 1 == 3 ]
22:19:26 Failed 2/50 subtests

We are not checking for the heal completion before comparing the xattrs in tests #49 & #50. If the heal is not completed at the time of comparing the values, it will fail. We need to wait for the heal to complete before comparing the xattr values.

Comment 1 Worker Ant 2019-07-15 06:31:20 UTC
REVIEW: https://review.gluster.org/23043 (tests: Fix bug-1717819-metadata-split-brain-detection.t failure) posted (#1) for review on master by Karthik U S

Comment 2 Worker Ant 2019-07-15 08:48:50 UTC
REVIEW: https://review.gluster.org/23043 (tests: Fix bug-1717819-metadata-split-brain-detection.t failure) merged (#2) on master by Atin Mukherjee