Bug 1534453
Summary: | Reading over than the file size on dispersed volume | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | jenny <ibestpro> | ||||||
Component: | disperse | Assignee: | Ashish Pandey <aspandey> | ||||||
Status: | CLOSED UPSTREAM | QA Contact: | |||||||
Severity: | urgent | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | mainline | CC: | aspandey, bugs, jahernan, pkarampu, skoduri, vbellur | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2020-03-12 13:00:03 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: | |||||||||
Attachments: |
|
Description
jenny
2018-01-15 09:55:50 UTC
sorry output is like this. retr : 130394, offset : 0(0) retr : 1024, offset : 130394(0) retr : 678, offset : 131418(0) retr : 0 Release 3.12 has been EOLd and this bug was still found to be in the NEW state, hence moving the version to mainline, to triage the same and take appropriate actions. *** Bug 1534452 has been marked as a duplicate of this bug. *** Hi Jenny, thanks for the reports. We have not seen this in latest glusterfs codebase (glusterfs-6.x). Will update you with testing it on glusterfs-7.0 base. Also considering this should be easy to automate with our regression tests, we would consider automating the same. Would be great if you can help by contributing this test to code (https://github.com/gluster/glusterfs/tree/master/tests) I could reproduce this case easily on latest master. I am uploading two files with this BZ which will help to reproduce this case. 1 - ec-fallocate-read.t - It will create two volume of 6+3 (patchy) and 4+2 (patchy1). Will mount these volumes and create a file on each using fallocate. 2 - ec-fallocate-read.c - This will read the files uding gfapi's and we can see the issue. After compiling it we need to provide host name of the volume and volume name. gcc ec-fallocate-read.c -lgfapi -Wall -O2 ./a.out <hostname> patchy ./a.out <hostname> patchy1 I am seeing the following result - [root@apandey Bugz]# ./a.out apandey patchy1 retr : 130394, offset : 0(0) offset : 130394 ---- [root@apandey Bugz]# stat /mnt/glusterfs/1/test1 File: /mnt/glusterfs/1/test1 Size: 130394 Blocks: 256 IO Block: 131072 regular file Device: 3ah/58d Inode: 11138790474948514051 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2019-07-17 14:01:52.152482945 +0530 Modify: 2019-07-17 14:01:52.152482945 +0530 Change: 2019-07-17 13:59:33.253903983 +0530 Birth: - [root@apandey Bugz]# ./a.out apandey patchy retr : 130394, offset : 0(0) retr : 1024, offset : 130394(0) retr : 678, offset : 131418(0) offset : 132096 [root@apandey Bugz]# ------ [root@apandey Bugz]# stat /mnt/glusterfs/0/test1 File: /mnt/glusterfs/0/test1 Size: 130394 Blocks: 258 IO Block: 131072 regular file Device: 39h/57d Inode: 9549418052567184184 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2019-07-17 14:01:52.114542579 +0530 Modify: 2019-07-17 14:01:52.114542579 +0530 Change: 2019-07-17 14:01:52.113054347 +0530 Birth: - Created attachment 1591344 [details]
Script to create two volume and mount and create files
Script to create two volume and mount and create files
Created attachment 1591345 [details]
Program to read files from two mount points using api
Program to read files from two mount points using api
This bug is moved to https://github.com/gluster/glusterfs/issues/981, and will be tracked there from now on. Visit GitHub issues URL for further details |