Bug 1578405

Summary: EIO errors when updating and deleting entries concurrently
Product: [Community] GlusterFS Reporter: Xavi Hernandez <jahernan>
Component: disperseAssignee: Xavi Hernandez <jahernan>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: mainlineCC: aspandey, 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: Environment:
Last Closed: 2020-03-12 13:02:10 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:

Description Xavi Hernandez 2018-05-15 14:00:35 UTC
Description of problem:

When files/directories are continuously updated and deleted concurrently. At some point some of them get corrupted and accessing them gives EIO errors.

Version-Release number of selected component (if applicable): mainline


How reproducible:

Most of the times

Steps to Reproduce:
1. Create a distributed-disperse volume
2. Mount it on two clients
3. On one client run "while true; do mkdir a;done"
4. On the other client run "while true;do mv a b; mv b a;done"
5. Wait some minutes
6. Stop the jobs started on steps 3 and 4
7. Run "rm -rf *" from one client

Actual results:

The rm failed with EIO error

Expected results:

The rm shouldn't fail

Additional info:

Comment 1 Worker Ant 2018-05-15 14:04:54 UTC
REVIEW: https://review.gluster.org/20025 (locks: prevent deletion of locked entries) posted (#1) for review on master by Xavi Hernandez

Comment 2 Xavi Hernandez 2018-10-25 14:20:18 UTC
*** Bug 1397283 has been marked as a duplicate of this bug. ***

Comment 3 Worker Ant 2020-03-12 13:02:10 UTC
This bug is moved to https://github.com/gluster/glusterfs/issues/990, and will be tracked there from now on. Visit GitHub issues URL for further details