Bug 1118780 - DHT + SNAPSHOT : If snapshot is taken when parellal rename is partially done then restoring that snapshot ends in having same gfid for multiple Directories
Summary: DHT + SNAPSHOT : If snapshot is taken when parellal rename is partially done ...
Keywords:
Status: CLOSED DUPLICATE of bug 1139172
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: distribute
Version: rhgs-3.0
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
: ---
Assignee: Raghavendra G
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard: dht-gfid-dir,dht-file-access, triaged...
: 1092510 1118779 (view as bug list)
Depends On: 1092510
Blocks: 1087818 1105082 1118779 1252244 1324381
TreeView+ depends on / blocked
 
Reported: 2014-07-11 14:04 UTC by Rachana Patel
Modified: 2018-02-23 09:53 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-23 09:52:19 UTC
Embargoed:


Attachments (Terms of Use)

Description Rachana Patel 2014-07-11 14:04:52 UTC
Description of problem:
=======================
try to rename Directories from multiple client at same time. e.g. from one mount give mv <src> <dest> and from another mv <src> <dest1> (where dest and dest1 is not hashing to same) or simply from one mount point mv <src> <dest> and from another mount point mv <src> <dest> .

Take snapshot when those operations are not completed on all sub-volumes. On restoring that snapshot
- same gfid for different Directories (at same level and/or diffrent level)



Version-Release number :
=========================
3.6.0.24-1.el6rhs.x86_64


How reproducible:
=================
always


Steps to Reproduce:
====================
1. create and mount distributed volume. (mount on multiple client)
2. create few files and Directories on mount point.
[root@OVM5 race]# mkdir src dest 
[root@OVM5 race]# touch src/f{1..5}

[to reproduce race, we are putting breakpoint at dht_rename_hashed_dir_cbk for both rename operation]

3. from one mount point execute 'mv src dest' and from other mount point execute 'mv dest src'
Now take snapshot

4. restore that snapshot and verify data from another mount and bricks also

[root@OVM5 race]# ls -lR 
.: 
total 0 
drwxr-xr-x 3 root root 51 Jul 10 16:51 src 

./src: 
total 0 
drwxr-xr-x 2 root root 18 Jul 10 16:51 dest 
drwxr-xr-x 2 root root 18 Jul 10 16:51 dest 

./src/dest: 
total 0 

./src/dest: 
total 0 




Actual results:
===============
- same gfid for different Directories 

Expected results:
=================
- no two directories should have same gfid

Comment 5 Susant Kumar Palai 2015-12-28 06:34:04 UTC
*** Bug 1118779 has been marked as a duplicate of this bug. ***

Comment 6 Nithya Balachandran 2016-09-01 12:16:51 UTC
*** Bug 1092510 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.