[Bugs] [Bug 1637934] glusterfsd is keeping fd open in index xlator

bugzilla at redhat.com bugzilla at redhat.com
Fri Oct 12 11:25:47 UTC 2018


--- Comment #2 from Mohit Agrawal <moagrawa at redhat.com> ---
There is one another way to reproduce the same

diff --git a/xlators/protocol/server/src/server-helpers.c
index c492ab164..29af4a946 100644
--- a/xlators/protocol/server/src/server-helpers.c
+++ b/xlators/protocol/server/src/server-helpers.c
@@ -249,6 +249,7 @@ server_connection_cleanup_flush_cbk (call_frame_t *frame,
void *cookie,
         fd = frame->local;
         client = frame->root->client;

+        sleep (5);
         fd_unref (fd);
         frame->local = NULL;

Put sleep in code before doing fd_unref in server_connection_cleanup_flush_cbk
and compile the code and follow the steps

1) start glusterd and set brick-mux to on
2) Create 2 plain replicate volumes and set open-behind off on the volume
3) Mount one of the volumes and on the mount execute "exec >a"
4) confirm that the file is opened on the bricks
5) execute "gluster volume stop <volname>" 
6) Wait for a minute just to be on safer side and check "ls
/proc/<pid-of-brick>/fd" It shows the file 'a'

Mohit Agrawal

You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=dHK6flZA0X&a=cc_unsubscribe

More information about the Bugs mailing list