Bug 1171681
Summary: | rename operation failed on disperse volume with glusterfs 3.6.1 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Panpan Feng <jiaowopan> | ||||
Component: | disperse | Assignee: | Pranith Kumar K <pkarampu> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 3.6.1 | CC: | bugs, jiaowopan, kaushal, mingfan.lu, pkarampu | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 3.6.3 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1184587 (view as bug list) | Environment: | |||||
Last Closed: | 2016-08-16 13:02:21 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: | 1184587 | ||||||
Attachments: |
|
Description
Panpan Feng
2014-12-08 11:43:02 UTC
Rename on a non-existing file comes with no-inode because the destination path doesn't exist. This case is handled as error in ec_loc_parent. That is the reason for the failure in rename. I see that this issue is already fixed in latest master. It doesn't check for loc->inode presence. which commit? I could backport it to my local build. Thanks Pranith. (In reply to Pranith Kumar K from comment #2) > I see that this issue is already fixed in latest master. It doesn't check > for loc->inode presence. I have tried patch 9072, and found that the rename operation will hang ! And the nightly build glusterfs-3.6.2 beta1-0.55-git443cda3 still face the same problem. Volume info as following: Volume Name: ec-test Type: Distributed-Disperse Volume ID: a77d8bfa-c89a-49bc-a6c7-1690984c6555 Status: Started Number of Bricks: 2 x (4 + 2) = 12 Transport-type: tcp Bricks: Brick1: 10.23.72.229:/mnt/xfsd/ec-test-0 Brick2: 10.23.72.229:/mnt/xfsd/ec-test-1 Brick3: 10.23.72.229:/mnt/xfsd/ec-test-2 Brick4: 10.23.72.229:/mnt/xfsd/ec-test-3 Brick5: 10.23.72.229:/mnt/xfsd/ec-test-4 Brick6: 10.23.72.229:/mnt/xfsd/ec-test-5 Brick7: 10.23.72.229:/mnt/xfsd/ec-test-6 Brick8: 10.23.72.229:/mnt/xfsd/ec-test-7 Brick9: 10.23.72.229:/mnt/xfsd/ec-test-8 Brick10: 10.23.72.229:/mnt/xfsd/ec-test-9 Brick11: 10.23.72.229:/mnt/xfsd/ec-test-10 Brick12: 10.23.72.229:/mnt/xfsd/ec-test-11 Options Reconfigured: server.allow-insecure: on features.quota-timeout: 5 features.quota: on ------------------------------------------------ Steps to reproduce: 1. mount -t glusterfs localhost:ec-test /mnt/glusterfs/ec-test 2. cd /mnt/gluster/ec-test 3. echo "hello" > file1 4. mv file1 file2 mount log snap view: [2015-01-16 13:43:46.583860] I [ec.c:195:ec_up] 0-ec-test-disperse-1: Going UP [2015-01-16 13:43:46.588176] I [fuse-bridge.c:5080:fuse_graph_setup] 0-fuse: switched to graph 0 [2015-01-16 13:43:46.588303] I [client-handshake.c:188:client_set_lk_version_cbk] 0-ec-test-client-11: Server lk version = 1 [2015-01-16 13:43:46.588336] I [client-handshake.c:188:client_set_lk_version_cbk] 0-ec-test-client-10: Server lk version = 1 [2015-01-16 13:43:46.588359] I [client-handshake.c:188:client_set_lk_version_cbk] 0-ec-test-client-7: Server lk version = 1 [2015-01-16 13:43:46.588374] I [client-handshake.c:188:client_set_lk_version_cbk] 0-ec-test-client-6: Server lk version = 1 [2015-01-16 13:43:46.588387] I [client-handshake.c:188:client_set_lk_version_cbk] 0-ec-test-client-8: Server lk version = 1 [2015-01-16 13:43:46.588392] I [fuse-bridge.c:4009:fuse_init] 0-glusterfs-fuse: FUSE inited with protocol versions: glusterfs 7.22 kernel 7.13 [2015-01-16 13:44:03.954295] I [dht-rename.c:1344:dht_rename] 0-ec-test-dht: renaming /file1 (hash=ec-test-disperse-1/cache=ec-test-disperse-1) => /file2 (hash=ec-test-disperse-1/cache=<nul>) GlusterFS-3.6.3 was released in April 2015, with a fix for this bug. Closing this bug. |