Bug 784205 - Incorrect read output when a file is read from multiple fuse clients
Summary: Incorrect read output when a file is read from multiple fuse clients
Keywords:
Status: CLOSED DUPLICATE of bug 811919
Alias: None
Product: GlusterFS
Classification: Community
Component: fuse
Version: mainline
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: shishir gowda
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-24 09:05 UTC by Anush Shetty
Modified: 2013-12-09 01:28 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-07 07:22:39 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Anush Shetty 2012-01-24 09:05:27 UTC
Description of problem: I have 2 fuse clients through which I writing into the same file. While trying to read the file from both the clients, the output is incorrect. The output on client2 sometimes comes appended with the content written from client1.


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


How reproducible: Create a volume and mount 2 fuse clients. Read and write into the same file from both the clients.


Steps to Reproduce:
1. echo 'abc' > /mnt/client1/file
2. echo '123' > /mnt/client2/file
3. cat /mnt/client1/file
4. cat /mnt/client2/file
  
Actual results:

abc123
abcabc123
abc123

Expected results:

It should return either 'abc' or '123'


Additional info: With direct-io-mode=yes option while mounting the client, this issue was not seen.

Volume Name: test
Type: Distribute
Volume ID: 57c127eb-5eac-4868-9e50-d108601c7422
Status: Started
Number of Bricks: 2
Transport-type: tcp
Bricks:
Brick1: shortwing:/falcon/d1
Brick2: shortwing:/falcon/d2
Options Reconfigured:
performance.quick-read: off
performance.io-cache: off
performance.read-ahead: off
performance.write-behind: off

Comment 1 Raghavendra G 2012-03-06 10:41:35 UTC
Also please note that both clients are on the same machine and hence sharing same vfs. Since, it seems like fuse/kernel issue, reassigning the bug to fuse.

Comment 2 Amar Tumballi 2012-03-12 09:22:19 UTC
We need to understand the issues clearly here. Either it has to goto the documentation.

Comment 3 Anush Shetty 2012-03-14 11:51:59 UTC
Reassigning to Csaba as this seems to be an issue in the fuse kernel module.

Comment 4 Anush Shetty 2012-03-16 10:00:33 UTC
Just tested this with 2 nfs clients and the issue was reproducible on the nfs client too.

Comment 5 shishir gowda 2012-03-16 10:58:07 UTC
With just a posix-fuse volume, we can reproduce the bug.
The posix open flags are not in append mode. the flag value varies:
32769-32768. The data in the backend is consistent.
The issue seems to be in read.

Comment 6 shishir gowda 2012-03-19 10:47:06 UTC
This issue exists in release-3.2.x too.

Comment 7 Vijay Bellur 2012-04-09 07:39:23 UTC
Removing target milestone as this happens in all versions.

Comment 8 shishir gowda 2012-06-07 07:22:39 UTC

*** This bug has been marked as a duplicate of bug 811919 ***


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