bugGluster - Bugs: bug #21945, afr_writev_cbk does not return the...

 
 

bug #21945: afr_writev_cbk does not return the stbuf from the first successful child

Submitter:  LI Daobing <lidaobing>
Submitted:  Fri 04 Jan 2008 03:17:13 AM UTC
   
 
Category:  GlusterFS Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Improper behaviour
Status:  Fixed Privacy:  Public
Assigned to:  krishnasrinivas Originator Name:  *
Open/Closed:  Closed Release: 
Operating System:  None Reproducibility:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 08 May 2008 05:37:36 PM UTC, comment #2: 

This bug is fixed already in AFR, and now AFR write returns as soon as first successful call comes. Hence solves this issue.

Amar Tumballi <amarts>
Group Member
Sat 12 Apr 2008 01:44:09 AM UTC, comment #1: 

Kris, Any updates on this? I think this is fixed because currently afr_writev_cbk() returns as soon as we get first successful _cbk(). Kris, if this is fixed. can you close it?

Amar Tumballi <amarts>
Group Member
Fri 04 Jan 2008 03:17:13 AM UTC, original submission:  

Hello,

afr_writev_cbk and afr_ftruncate_cbk does not return the stbuf from the first successful child, while many others do (such as afr_chmod_cbk).

this cause vim report following error[1] frequently when you want to save the edit file:

[1] WARNING: The file has been changed since reading it!!!

A trace result in [2], pay attention to the returned st_mtime in two writev.

Thanks.

[2]
2008-01-04 10:58:06 D [trace.c:1410:trace_writev] iothreads: (*this=0x61c750, *fd=0x2aaaac009210, *vector=0x7fff1aa1e050, count=1, offset=0)
2008-01-04 10:58:06 D [trace.c:189:trace_writev_cbk] iothreads: (*this=0x61c750, op_ret=4096, op_errno=107, *buf=0x66a588 {st_dev=2064, st_ino=161054
73, st_mode=33188, st_nlink=1, st_uid=0, st_gid=0, st_rdev=0, st_size=12288, st_blksize=4096, st_blocks=24, st_atime=[Jan 04 10:57:44], st_mtime=[Jan
 04 10:57:50], st_ctime=[Jan 04 10:57:50]})
[snip]
2008-01-04 10:58:06 D [trace.c:1410:trace_writev] iothreads: (*this=0x61c750, *fd=0x2aaaac009210, *vector=0x7fff1aa1e050, count=1, offset=0)
2008-01-04 10:58:06 D [trace.c:189:trace_writev_cbk] iothreads: (*this=0x61c750, op_ret=4096, op_errno=107, *buf=0x66a588 {st_dev=2064, st_ino=480215
07, st_mode=33188, st_nlink=1, st_uid=0, st_gid=0, st_rdev=0, st_size=12288, st_blksize=4096, st_blocks=24, st_atime=[Jan 04 10:57:40], st_mtime=[Jan
 04 10:57:46], st_ctime=[Jan 04 10:57:46]})

LI Daobing <lidaobing>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by amarts (Posted a comment)
  • -email is unavailable- added by krishnasrinivas (Updated the item)
  • -email is unavailable- added by lidaobing (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-05-08 amarts Open/ClosedOpen Closed
    2008-05-08 amarts StatusNone Fixed
    2008-01-04 krishnasrinivas Assigned toNone krishnasrinivas
    2008-01-04 lidaobing Attached File- Added 0001-afr_writev_cbk-afr_ftrunacte-does-not-return-stable.patch, #14745

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code