Bug 1228111

Summary: [Backup]: Crash observed when glusterfind pre is run after deleting a directory containing files
Product: [Community] GlusterFS Reporter: Milind Changire <mchangir>
Component: glusterfindAssignee: Milind Changire <mchangir>
Status: CLOSED CURRENTRELEASE QA Contact: bugs <bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: mainlineCC: amukherj, avishwan, khiremat, sanandpa
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.8rc2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1228017 Environment:
Last Closed: 2016-06-16 13:08:04 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: 1228017, 1230783    
Bug Blocks: 1223636, 1225559    

Comment 1 Anand Avati 2015-06-05 09:28:43 UTC
REVIEW: http://review.gluster.org/11099 (tools/glusterfind: ignoring deleted files) posted (#1) for review on master by Milind Changire (mchangir)

Comment 2 Anand Avati 2015-06-09 06:19:38 UTC
REVIEW: http://review.gluster.org/11099 (tools/glusterfind: ignoring deleted files) posted (#2) for review on master by Milind Changire (mchangir)

Comment 3 Anand Avati 2015-06-09 08:51:30 UTC
REVIEW: http://review.gluster.org/11099 (tools/glusterfind: ignoring deleted files) posted (#3) for review on master by Milind Changire (mchangir)

Comment 4 Anand Avati 2015-06-11 14:51:41 UTC
REVIEW: http://review.gluster.org/11099 (tools/glusterfind: ignoring deleted files) posted (#6) for review on master by Milind Changire (mchangir)

Comment 5 Anand Avati 2015-06-12 07:37:21 UTC
REVIEW: http://review.gluster.org/11194 (tools/glusterfind: ignoring deleted files) posted (#1) for review on master by Milind Changire (mchangir)

Comment 6 Anand Avati 2015-06-12 14:13:22 UTC
COMMIT: http://review.gluster.org/11194 committed in master by Vijay Bellur (vbellur) 
------
commit b0edf64f91bf2afefc811c832babe9e3e6bdfbfe
Author: Milind Changire <mchangir>
Date:   Fri Jun 12 12:48:27 2015 +0530

    tools/glusterfind: ignoring deleted files
    
    OSError and IOError exceptions were being thrown if files
    were deleted after session was created and a subsequent
    glusterfind pre was attmepted. glusterfind now detects
    this scenario and safely ignores these changes to the
    file-system. We also avoid recording deleted file paths
    into database in the case where gfid to path resolution
    cannot be performed for deleted files.
    
    Also, we now turn on volume option to capture delete paths.
    
    Change-Id: Iaf3883463f5e64643497bd77229ad80a9b2d5da5
    BUG: 1228111
    Signed-off-by: Milind Changire <mchangir>
    Reviewed-on: http://review.gluster.org/11194
    Reviewed-by: Aravinda VK <avishwan>
    Tested-by: NetBSD Build System <jenkins.org>

Comment 7 Aravinda VK 2016-01-08 09:18:51 UTC
*** Bug 1225558 has been marked as a duplicate of this bug. ***

Comment 8 Niels de Vos 2016-06-16 13:08:04 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.8.0, please open a new bug report.

glusterfs-3.8.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://blog.gluster.org/2016/06/glusterfs-3-8-released/
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user