Bug 1290304

Summary: [RFE]Reducing number of network round trips
Product: [Community] GlusterFS Reporter: Pranith Kumar K <pkarampu>
Component: replicateAssignee: Pranith Kumar K <pkarampu>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.10.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1360978 1372686 1372693 (view as bug list) Environment:
Last Closed: 2017-03-06 17:20:01 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:
Bug Depends On:    
Bug Blocks: 1274908, 1360978, 1372686, 1372693    

Description Pranith Kumar K 2015-12-10 06:49:40 UTC
Description of problem:
In the unoptimized version of transaction we have: 1) Lock,
2) Pre-op 3) op 4) Post-op 5) unlock
With compound fops we will have:
1) Lock, 2) Pre-op + op 3) post-op + unlock
This reduces round trips from 5 to 3 in the un-optimized version 
of afr-transaction.

This helps in small file write workload.
Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Vijay Bellur 2016-08-09 07:17:44 UTC
REVIEW: http://review.gluster.org/15014 (afr: Consume compound fops in afr transaction) posted (#2) for review on master by Anuradha Talur (atalur)

Comment 2 Worker Ant 2016-08-25 11:03:06 UTC
REVIEW: http://review.gluster.org/15014 (afr: Consume compound fops in afr transaction) posted (#3) for review on master by Anuradha Talur (atalur)

Comment 3 Worker Ant 2016-08-31 13:27:15 UTC
REVIEW: http://review.gluster.org/15014 (afr: Consume compound fops in afr transaction) posted (#4) for review on master by Anuradha Talur (atalur)

Comment 4 Worker Ant 2016-08-31 23:48:01 UTC
REVIEW: http://review.gluster.org/15014 (afr: Consume compound fops in afr transaction) posted (#5) for review on master by Pranith Kumar Karampuri (pkarampu)

Comment 5 Worker Ant 2016-09-01 17:22:44 UTC
COMMIT: http://review.gluster.org/15014 committed in master by Pranith Kumar Karampuri (pkarampu) 
------
commit befae0b48729894282b5b8b174907e24779c3442
Author: Anuradha Talur <atalur>
Date:   Thu Aug 25 11:46:25 2016 +0530

    afr: Consume compound fops in afr transaction
    
    Change-Id: Ib06ece3cce1b10d28d6d2953da28444f5c2457ad
    BUG: 1290304
    Signed-off-by: Anuradha Talur <atalur>
    Reviewed-on: http://review.gluster.org/15014
    Tested-by: Pranith Kumar Karampuri <pkarampu>
    Smoke: Gluster Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    Reviewed-by: Krutika Dhananjay <kdhananj>
    Reviewed-by: Pranith Kumar Karampuri <pkarampu>

Comment 7 Shyamsundar 2017-03-06 17:20:01 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.10.0, please open a new bug report.

glusterfs-3.10.0 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://lists.gluster.org/pipermail/gluster-users/2017-February/030119.html
[2] https://www.gluster.org/pipermail/gluster-users/