[Bugs] [Bug 1164768] New: Write strings to a file by O_APPEND mode (echo "strings" >> /mountpoint/file.txt) is abnormal

bugzilla at redhat.com bugzilla at redhat.com
Mon Nov 17 11:45:37 UTC 2014


https://bugzilla.redhat.com/show_bug.cgi?id=1164768

            Bug ID: 1164768
           Summary: Write strings to a file by O_APPEND mode (echo
                    "strings" >> /mountpoint/file.txt) is abnormal
           Product: GlusterFS
           Version: 3.6.0
         Component: disperse
          Severity: high
          Assignee: bugs at gluster.org
          Reporter: jiademing.dd at gmail.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem:
 I create a disperse 3 redundancy 1 volume, then touch /mountpoint/file.txt. I
execute "echo 'AAAAAAAAAAAAAAAAAA' >> /mountpoint/file.txt", no error report,
then read /mountpoint/file.txt by cat is NULL.But I can read the
"AAAAAAAAAAAAAAA" from sub-directory's file.txt by cat.

  file.txt's size is ok,  echo "AAAAAAAAAAA" > /mountpointf/file.txt
(OVERWRITE) and copy all are ok.



Version-Release number of selected component (if applicable):
3.6.0 and 3.6.1 and glusterfs-master from git

How reproducible:


Steps to Reproduce:
1.create a disperse 3 redundancy 1 volume
Volume Name: test
Type: Disperse
Volume ID: 5de6b5d7-dc4f-48c6-bc2b-15019c900ed2
Status: Started
Number of Bricks: 1 x (2 + 1) = 3
Transport-type: tcp
Bricks:
Brick1: 10.10.21.50:/sda
Brick2: 10.10.21.50:/sdb
Brick3: 10.10.21.50:/sdc

2.touch /mountpoint/file.txt
3.echo "AAAAAAAAAAAAAAA" >> /mountpoint/file.txt (APEND)
4.Can not read strings from /mountpoint/file.txt (by cat)

Actual results:


Expected results:


Additional info:

In my opinion, the circuit of O_APEND write is abnormal  in disperse.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list