[Bugs] [Bug 1312721] tar complains: <fileName>: file changed as we read it

bugzilla at redhat.com bugzilla at redhat.com
Mon Mar 28 10:56:37 UTC 2016


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



--- Comment #6 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/13830 committed in release-3.7 by Raghavendra
G (rgowdapp at redhat.com) 
------
commit 76645128ed54d2cb43cc6a047c0bcc3ee43e9aa8
Author: Sakshi Bansal <sabansal at redhat.com>
Date:   Sat Mar 19 10:15:24 2016 +0530

    dht: update attr information in refresh layout to avoid
         stale timestamp

    Consider the scenario where an mkdir has just created the
    directory but has not healed it yet. A parallel lookup on
    this entry will find anomalies and trigger a selfheal which
    will sample the ctime of the directory after the mkdir phase.
    Meanwhile the mkdir has completed setting the layout and
    updated the ctime. The selfheal then sees the layout to be
    healed and returns with the ctime it got after the mkdir phase
    which has now become stale. However if the lookup happens
    to unwind before the mkdir then the inode associated with
    lookup will get linked in the inode table which has the
    stale ctime. To avoid this selfheal must do an iatt_merge in
    refresh layout to get the latest timestamp irrespective of
    whether it needs to heal the layout or not.

    Backport of http://review.gluster.org/#/c/13781/

    > Change-Id: I3634c3978bcc1710705f44b48f3876601682d33e
    > BUG: 1302948
    > Signed-off-by: Sakshi Bansal <sabansal at redhat.com>
    > Reviewed-on: http://review.gluster.org/13781
    > Smoke: Gluster Build System <jenkins at build.gluster.com>
    > Reviewed-by: Raghavendra G <rgowdapp at redhat.com>
    > NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    > CentOS-regression: Gluster Build System <jenkins at build.gluster.com>

    Change-Id: I3634c3978bcc1710705f44b48f3876601682d33e
    BUG: 1312721
    Signed-off-by: Sakshi Bansal <sabansal at redhat.com>
    Reviewed-on: http://review.gluster.org/13830
    Smoke: Gluster Build System <jenkins at build.gluster.com>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Raghavendra G <rgowdapp at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=SiDXd6M9nW&a=cc_unsubscribe


More information about the Bugs mailing list