Bug 1532112

Summary: Test case ./tests/bugs/bug-1371806_1.t is failing
Product: [Community] GlusterFS Reporter: Mohit Agrawal <moagrawa>
Component: testsAssignee: Mohit Agrawal <moagrawa>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.12CC: atumball, bugs, nbalacha
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: 1498966 Environment:
Last Closed: 2018-10-08 09:47:02 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: 1498966    
Bug Blocks: 1529055, 1529058    

Description Mohit Agrawal 2018-01-08 02:39:00 UTC
+++ This bug was initially created as a clone of Bug #1498966 +++

Description of problem:

Test case ./tests/bugs/bug-1371806_1.t is failing.
Version-Release number of selected component (if applicable):


How reproducible:
Sometime test case ./tests/bugs/bug-1371806_1.t is failing on centos.

Steps to Reproduce:
1.
2.
3.

Actual results:

Test case ./tests/bugs/bug-1371806_1.t is failing.
Expected results:
Test case ./tests/bugs/bug-1371806_1.t should not fail.

Additional info:

--- Additional comment from Worker Ant on 2017-10-05 12:38:01 EDT ---

REVIEW: https://review.gluster.org/18436 (Test: Test case ./tests/bugs/bug-1371806_1.t is failing) posted (#1) for review on master by MOHIT AGRAWAL (moagrawa)

--- Additional comment from Worker Ant on 2017-10-06 03:35:20 EDT ---

REVIEW: https://review.gluster.org/18436 (Test: Test case ./tests/bugs/bug-1371806_1.t is failing) posted (#2) for review on master by MOHIT AGRAWAL (moagrawa)

--- Additional comment from Worker Ant on 2017-10-06 06:05:00 EDT ---

REVIEW: https://review.gluster.org/18436 (Test: Test case ./tests/bugs/bug-1371806_1.t is failing) posted (#3) for review on master by MOHIT AGRAWAL (moagrawa)

--- Additional comment from Worker Ant on 2017-10-06 22:32:26 EDT ---

REVIEW: https://review.gluster.org/18436 (Test: Test case ./tests/bugs/bug-1371806_1.t is failing) posted (#4) for review on master by MOHIT AGRAWAL (moagrawa)

--- Additional comment from Worker Ant on 2017-10-09 08:21:16 EDT ---

REVIEW: https://review.gluster.org/18436 (Test: Test case ./tests/bugs/bug-1371806_1.t is failing) posted (#5) for review on master by MOHIT AGRAWAL (moagrawa)

--- Additional comment from Worker Ant on 2017-10-12 03:31:03 EDT ---

REVIEW: https://review.gluster.org/18436 (cluster/dht: Serialize mds update code path with lookup unwind in selfheal) posted (#6) for review on master by MOHIT AGRAWAL (moagrawa)

--- Additional comment from Worker Ant on 2017-10-12 05:06:36 EDT ---

REVIEW: https://review.gluster.org/18436 (cluster/dht: Serialize mds update code path with lookup unwind in selfheal) posted (#7) for review on master by MOHIT AGRAWAL (moagrawa)

--- Additional comment from Worker Ant on 2017-10-16 02:28:02 EDT ---

REVIEW: https://review.gluster.org/18436 (cluster/dht: Serialize mds update code path with lookup unwind in selfheal) posted (#8) for review on master by MOHIT AGRAWAL (moagrawa)

--- Additional comment from Worker Ant on 2017-10-16 02:30:03 EDT ---

REVIEW: https://review.gluster.org/18436 (cluster/dht: Serialize mds update code path with lookup unwind in selfheal) posted (#9) for review on master by MOHIT AGRAWAL (moagrawa)

--- Additional comment from Worker Ant on 2017-11-22 12:19:20 EST ---

COMMIT: https://review.gluster.org/18436 committed in master by \"MOHIT AGRAWAL\" <moagrawa> with a commit message- cluster/dht: Serialize mds update code path with lookup unwind in selfheal

Problem: Sometime test case ./tests/bugs/bug-1371806_1.t is failing on
         centos due to race condition between fresh lookup and setxattr fop.

Solution: In selfheal code path we do save mds on inode_ctx, it was not
          serialize with lookup unwind. Due to this behavior after lookup
          unwind if mds is not saved on inode_ctx and if any subsequent
          setxattr fop call it has failed with ENOENT because
          no mds has found on inode ctx.To resolve it save mds on
          inode ctx has been serialize with lookup unwind.

BUG: 1498966
Change-Id: I8d4bb40a6cbf0cec35d181ec0095cc7142b02e29
Signed-off-by: Mohit Agrawal <moagrawa>

Comment 1 Nithya Balachandran 2018-10-08 06:01:10 UTC
*** Bug 1529058 has been marked as a duplicate of this bug. ***

Comment 2 Amar Tumballi 2018-10-08 09:47:02 UTC
Already part of 4.1 releases.