Bug 841840

Summary: replicate fix-open should consider O_TRUNC flag.
Product: [Community] GlusterFS Reporter: Pranith Kumar K <pkarampu>
Component: replicateAssignee: Pranith Kumar K <pkarampu>
Status: CLOSED CURRENTRELEASE QA Contact: Rahul Hinduja <rhinduja>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: pre-releaseCC: gluster-bugs, jdarcy, sdharane
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-24 17:43:13 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:

Description Pranith Kumar K 2012-07-20 11:21:56 UTC
Description of problem:

    When open was done while a brick is down, afr opens the file after
    the brick comes backup. If this happens after the self-heal on the file
    is completed by self-heald etc, the file will end up in truncated state.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Vijay Bellur 2012-07-26 00:45:31 UTC
CHANGE: http://review.gluster.com/3705 (cluster/afr: Filter O_TRUNC in afr-fix-open) merged in master by Anand Avati (avati)

Comment 2 Jeff Darcy 2012-10-31 13:36:39 UTC
Don't see it in 3.3 branch, so still MODIFIED.

Comment 3 Jeff Darcy 2012-11-01 14:28:03 UTC
http://review.gluster.org/4147

Comment 4 Vijay Bellur 2012-11-05 10:27:54 UTC
CHANGE: http://review.gluster.org/4147 (cluster/afr: Filter O_TRUNC in afr-fix-open) merged in release-3.3 by Vijay Bellur (vbellur)