Bug 1235601 - tar on a glusterfs mount displays "file changed as we read it" even though the file was not changed
Summary: tar on a glusterfs mount displays "file changed as we read it" even though th...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: replicate
Version: 3.6.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On: 1235216
Blocks: 1202842
TreeView+ depends on / blocked
 
Reported: 2015-06-25 10:01 UTC by Krutika Dhananjay
Modified: 2015-08-27 13:06 UTC (History)
3 users (show)

Fixed In Version: glusterfs-3.6.5
Clone Of: 1235216
Environment:
Last Closed: 2015-08-27 13:06:56 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Krutika Dhananjay 2015-06-25 10:01:22 UTC
+++ This bug was initially created as a clone of Bug #1235216 +++

+++ This bug was initially created as a clone of Bug #1223757 +++

+++ This bug was initially created as a clone of Bug #1212842 +++

Description of problem:
-----------------------

tar command on the glusterfs mount point is seen to report the following error on some files -

tar: ./linux-3.19.4/tools/perf/scripts/perl: file changed as we read it

There were no changes made to files while the tar command was in progress. Reproducible on 1x2 volume. Unable to reproduce on a pure distribute volume.

See below for volume information -

# gluster v i test
 
Volume Name: test
Type: Replicate
Volume ID: f844808b-0d2e-40ce-9331-eddfb2b72855
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: vm5-rhsqa13:/rhs/brick5/b1
Brick2: vm6-rhsqa13:/rhs/brick5/b1
Options Reconfigured:
cluster.consistent-metadata: on
features.quota: on
features.uss: enable
client.event-threads: 4
server.event-threads: 5

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

glusterfs-3.7dev-0.965.git2788ddd.el6.x86_64

How reproducible:
------------------

Tried a couple of times, on 6x3 and 1x2 volumes. Successfully reproducible.


Steps to Reproduce:
--------------------

1. Create replicate or distributed-replicate volume and set the option `cluster.consistent-metadata' to on. Start the volume.
2. Fuse mount the volume.
3. Download linux kernel and untar it on the mount point.
4. Compile the kernel and try to create a tar.

Actual results:
----------------

While the tar command is running, the above described messages are seen for many files.

Expected results:
------------------

tar is expected to run successfully.

--- Additional comment from Krutika Dhananjay on 2015-06-24 06:21:55 EDT ---

http://review.gluster.org/#/c/11373/

--- Additional comment from Anand Avati on 2015-06-24 20:11:03 EDT ---

COMMIT: http://review.gluster.org/11373 committed in master by Vijay Bellur (vbellur) 
------
commit 4c751009f668910a734cd400c10e8b3bdd6360a1
Author: Krutika Dhananjay <kdhananj>
Date:   Wed Jun 24 08:02:51 2015 +0530

    cluster/afr: Pick gfid from poststat during fresh lookup for read child calculation
    
    Change-Id: I12c1e4f67f4ec4affbe13d7daf871044a8a2a12e
    BUG: 1235216
    Signed-off-by: Krutika Dhananjay <kdhananj>
    Reviewed-on: http://review.gluster.org/11373
    Reviewed-by: Pranith Kumar Karampuri <pkarampu>
    Tested-by: NetBSD Build System <jenkins.org>

Comment 1 Anand Avati 2015-06-25 11:29:21 UTC
REVIEW: http://review.gluster.org/11408 (cluster/afr: Pick gfid from poststat during fresh lookup for read child calculation) posted (#1) for review on release-3.6 by Krutika Dhananjay (kdhananj)

Comment 2 Raghavendra Bhat 2015-08-27 13:06:56 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.6.5, please open a new bug report.

glusterfs-3.6.5 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://www.gluster.org/pipermail/gluster-devel/2015-August/046570.html
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user


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