[Bugs] [Bug 1285139] Sharding - Extending writes filling incorrect final size in postbuf

bugzilla at redhat.com bugzilla at redhat.com
Wed Nov 25 06:50:49 UTC 2015


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



--- Comment #2 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/12737 committed in release-3.7 by Pranith
Kumar Karampuri (pkarampu at redhat.com) 
------
commit 5c751eba5f392bbcea5b329867112513faaf8366
Author: Krutika Dhananjay <kdhananj at redhat.com>
Date:   Mon Nov 23 13:06:25 2015 +0530

    features/shard: Eliminate extra update to postbuf in writev

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

    After an extending write is complete, shard translator updates postbuf
    at two places:
    1. shard_update_file_size_cbk(), and
    2. shard_post_update_size_writev_handler().

    This can lead to unexpected behavior if md-cache is part of the client
    stack and caches and serves values returned by shard translator in
    postbuf. This patch eliminates the update to postbuf in
    shard_post_update_size_writev_handler().

    Change-Id: I1b97a46931b12d5a2f5d60877e57e0caf9e9fcb6
    BUG: 1285139
    Signed-off-by: Krutika Dhananjay <kdhananj at redhat.com>
    Reviewed-on: http://review.gluster.org/12737
    Reviewed-by: Pranith Kumar Karampuri <pkarampu at redhat.com>
    Tested-by: NetBSD Build System <jenkins at build.gluster.org>
    Tested-by: Gluster Build System <jenkins at build.gluster.com>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list