Bug 762604 (GLUSTER-872) - replicate open fd selfheal does not work as expected
Summary: replicate open fd selfheal does not work as expected
Keywords:
Status: CLOSED WORKSFORME
Alias: GLUSTER-872
Product: GlusterFS
Classification: Community
Component: replicate
Version: mainline
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Anand Avati
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-29 17:56 UTC by Krishna Srinivas
Modified: 2015-12-01 16:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Vikas Gorur 2010-04-29 15:31:01 UTC
Can you reproduce this with client running in TRACE log level and post the log?

Comment 1 Krishna Srinivas 2010-04-29 17:56:12 UTC
distribute-> 2 replicates -> 4 protocol/client

shell 1:
root@ubuntu:/mnt/glusterfs# while [ true ]; do  echo 1 >> passwd; sleep 1 ; done

shell 2:
root@ubuntu:/mnt/glusterfs# tail -f passwd 
1
1

(to keep fd open)

shell 3:
kill one of the server process and bring it back up.
root@ubuntu:/home/krishna.tmp/volfiles/# ls -l /export/dir[12]
/export/dir1:
total 8
-rw-r--r-- 1 root root 431 2010-04-29 10:14 passwd

/export/dir2:
total 8
-rw-r--r-- 1 root root 311 2010-04-29 10:14 passwd
root@ubuntu:/home/krishna.tmp/volfiles/# ls -l /export/dir[12]
/export/dir1:
total 8
-rw-r--r-- 1 root root 435 2010-04-29 10:14 passwd

/export/dir2:
total 8
-rw-r--r-- 1 root root 315 2010-04-29 10:14 passwd
root@ubuntu:/home/krishna.tmp/volfiles/#

you can see that file sizes are different but still getting updated with writes.

now on shell 2, ctrl-c the tail -f command
on shell 3:
root@ubuntu:/home/krishna.tmp/volfiles/# ls -l /export/dir[12]
/export/dir1:
total 8
-rw-r--r-- 1 root root 443 2010-04-29 10:14 passwd

/export/dir2:
total 8
-rw-r--r-- 1 root root 443 2010-04-29 10:14 passwd

you can see that now it has selfhealed after close.

it is fine if it is selfhealed after close, but should not be updating the outdated copy if selfheal has not happened.

Comment 2 Amar Tumballi 2010-05-04 08:11:03 UTC
Anush tried to reproduce the issue, but couldn't reproduce. TRACE logs if you can reproduce will help.

Comment 3 Amar Tumballi 2010-10-05 07:07:22 UTC
Avati, close if this is fixed.


Note You need to log in before you can comment on or make changes to this bug.