Description of problem: After a glusterfind pre query command execution all temporary files and directories under /usr/var/lib/misc/glusterfsd/glusterfind/<session>/<volume>/ should be removed. It will end-up eating file system. Version-Release number of selected component (if applicable): glusterfs-3.8.4-11.el7rhgs.x86_64 How reproducible: 100% Steps to Reproduce: 1. Create 2*2 distribute replicate volume 2. Do fuse mount and create some files and directories 3. create glusterfind session 4. do some file operation on mount point like create create file, remove files 5. run glusterfind pre command Actual results: temporary files and directories under /usr/var/lib/misc/glusterfsd/glusterfind/<session>/<volume>/ are removed after glusterfind pre command Expected results: glusterfind should delete temporary files and directories under /usr/var/lib/misc/glusterfsd/glusterfind/<session>/<volume>/ Additional info:
upstream patch : http://review.gluster.org/16416
downstream patch : https://code.engineering.redhat.com/gerrit/#/c/96371/
After pre/query command temporary files and directories are deleted from location /usr/var/lib/misc/glusterfsd/glusterfind/<session>/<volume>/ ============================================================= [root@rhs-client47 repvol]# glusterfind pre session_repvol repvol /tmp/outputfile1 Generated output file /tmp/outputfile1 [root@rhs-client47 repvol]# less /tmp/outputfile1 [root@rhs-client47 repvol]# cd /usr/var/lib/misc/glusterfsd/glusterfind/ [root@rhs-client47 glusterfind]# ll total 0 drwxr-xr-x. 4 root root 30 Jan 30 19:40 session_1 drwxr-xr-x. 3 root root 20 Feb 7 14:35 session_repvol [root@rhs-client47 glusterfind]# cd session_repvol/ [root@rhs-client47 session_repvol]# ll total 0 drwxr-xr-x. 2 root root 6 Feb 7 14:35 repvol [root@rhs-client47 session_repvol]# cd repvol/ [root@rhs-client47 repvol]# ll total 0 ============================================================== [root@rhs-client47 repvol]# glusterfind query repvol /tmp/text --full less /tmp/textGenerated output file /tmp/text [root@rhs-client47 repvol]# less /tmp/text [root@rhs-client47 repvol]# ll total 0 [root@rhs-client47 repvol]# pwd /usr/var/lib/misc/glusterfsd/glusterfind/session_repvol/repvol [root@rhs-client47 repvol]# ll total 0 Bug verified on build glusterfs-3.8.4-14.el7rhgs.x86_64
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2017-0486.html