Bug 1550771

Summary: [GSS] Duplicate directory created on newly added bricks after rebalancing volume
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Prashant Dhange <pdhange>
Component: distributeAssignee: Nithya Balachandran <nbalacha>
Status: CLOSED ERRATA QA Contact: Prasad Desala <tdesala>
Severity: high Docs Contact:
Priority: high    
Version: rhgs-3.3CC: amukherj, madam, nbalacha, pdhange, rgowdapp, rhinduja, rhs-bugs, sarora, sheggodu, srmukher, storage-qa-internal
Target Milestone: ---   
Target Release: RHGS 3.4.0   
Hardware: x86_64   
OS: All   
Whiteboard:
Fixed In Version: glusterfs-3.12.2-5 Doc Type: Bug Fix
Doc Text:
Previously, DHT did not rollback directory rename operations if they did not succeed on all bricks. This resulted in duplicate directories (with both old and new names) having the same gfid on bricks where the rename operation failed. With this fix, DHT rolls back the directory rename operations if it was not successful on all the bricks.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 06:44:11 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: 1550315, 1550896    
Bug Blocks: 1503138    

Comment 14 Nithya Balachandran 2018-03-05 05:38:09 UTC
As I believe the issue to be related to ACLs not being set on the new bricks,I am adding BZ# 1550315 as a dependency.

Comment 34 Prasad Desala 2018-04-20 12:11:26 UTC
Reproduced this issue on 3.3.1 and followed the same steps for verifying this BZ on 3.4.0 (3.12.2-7.el7rhgs.x86_64).

1) Created a distributed-replicate volume and start it.
2) FUSE mount it on a client.
3) On mount point, create a directory "dir1"
4) Select a replica pair and for all the bricks in this replica pair set read-only option to on by making changes in the brick vol file. 
5) Stop and start the volume.
6) From mount point, rename the directory from dir1 to dir2.

Before fix, dir1 is not renamed on the read-only bricks and on other bricks rename is successful leading to inconsistency across the nodes and both dir1 and dir2 are having same gfid.

After fix, all the backend bricks are having the same directory.

Moving this BZ to Verified.

Comment 35 Srijita Mukherjee 2018-09-03 15:40:22 UTC
Have updated the doc text. Kindly review.

Comment 37 errata-xmlrpc 2018-09-04 06:44:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2607

Comment 38 Nithya Balachandran 2018-10-29 12:17:15 UTC
(In reply to Srijita Mukherjee from comment #35)
> Have updated the doc text. Kindly review.

Hadn't this been reworded to remove all mention of DHT?

Comment 39 Red Hat Bugzilla 2023-09-15 00:06:44 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days