[Bugs] [Bug 1462121] [GNFS+EC] Unable to release the lock when the other client tries to acquire the lock on the same file

bugzilla at redhat.com bugzilla at redhat.com
Fri Jun 16 08:59:48 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1462121



--- Comment #1 from Pranith Kumar K <pkarampu at redhat.com> ---
Steps to Reproduce:
1.Create a 6 Node gluster
2.Create an EC volume 2 x (4 + 2).Enable GNFS on the volume
3.Mount the volume to 2 clients.
4.Create a file say file1 of 512 bytes from client 1
5.Now take the lock on the same file from client1
6.Try taking the lock on the same file from client2.(Lock will not be granted
for client 2 because it is already held by client 1)
7.Now release the lock from client 1

Client 1:
-----
[root at dhcp37-192 home]# ./a.out /mnt/disperse/file1 
opening /mnt/disperse/file1
opened; hit Enter to lock... 
locking
locked; hit Enter to write... 
Write succeeeded 
locked; hit Enter to unlock... 
unlocking
-----

Client 2
-----
[root at dhcp37-142 home]# ./a.out /mnt/disperse1/file1 
opening /mnt/disperse1/file1
opened; hit Enter to lock... 
locking
-----

Actual results:
It unable to release the lock from file and gets hang

Expected results:
It should able to release the lock from client1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list