Bug 818578 - [glusterfs-3.3.0qa39]: blocked entrylks when rm -rf and replace-brick happening parallely
[glusterfs-3.3.0qa39]: blocked entrylks when rm -rf and replace-brick happeni...
Product: GlusterFS
Classification: Community
Component: replicate (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Pranith Kumar K
Pranith Kumar K
Depends On:
Blocks: 817967
  Show dependency treegraph
Reported: 2012-05-03 08:30 EDT by Raghavendra Bhat
Modified: 2013-07-24 13:19 EDT (History)
1 user (show)

See Also:
Fixed In Version: glusterfs-3.4.0
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-07-24 13:19:04 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions: glusterfs-3.3.0qa40
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
statedump of the source brick (359.63 KB, application/octet-stream)
2012-05-03 08:31 EDT, Raghavendra Bhat
no flags Details

  None (edit)
Description Raghavendra Bhat 2012-05-03 08:30:41 EDT
Description of problem:
Created a single brick volume. Untarred linux-kernel tarball and glusterfs tarball. Gave replace-brick and after some time ran rm -rf on the fuse mount parallely.

After somefiles were deleted rm -rf hung.

xlator.feature.locks.lock-dump.domain.entrylk.entrylk[0](ACTIVE)=type=ENTRYLK_WRLCK on basename=.sys_ia32.o.cmd, pid = 484620988, owner=bcbae2
1c097f0000, transport=(nil), , granted at Thu May  3 15:49:45 2012

xlator.feature.locks.lock-dump.domain.entrylk.entrylk[1](BLOCKED)=type=ENTRYLK_WRLCK on basename=.sys_ia32.o.cmd, pid = 484620988, owner=bcbae21c097f0000, transport=(nil), , blocked at Thu May  3 15:49:45 2012

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

How reproducible:

Steps to Reproduce:
1. Create a single brick volume and start it.
2. Create files and directories (may be untarring of linux-kernel, glusterfs etc)
3. Give replace brick and after some time do rm -rf on the mount point (replace-brick should be going on)
Actual results:

rm -rf hung due to blocked entrylks

Expected results:

rm -rf should not hang

Additional info:
Comment 1 Raghavendra Bhat 2012-05-03 08:31:48 EDT
Created attachment 581848 [details]
statedump of the source brick
Comment 2 Anand Avati 2012-05-03 15:22:21 EDT
CHANGE: http://review.gluster.com/3270 (cluster/afr: Fix race in nonblocking entrylk) merged in master by Anand Avati (avati@redhat.com)
Comment 3 Raghavendra Bhat 2012-05-10 03:26:23 EDT
Tested with glusterfs-3.3.0qa40 and rm -rf completed successfully without hanging when replace-brick was going on and replace-brick also completed.

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