Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1366284

Summary: fix bug in protocol/client lookup callback
Product: [Community] GlusterFS Reporter: Anuradha <atalur>
Component: protocolAssignee: Pranith Kumar K <pkarampu>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs, smohan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: glusterfs-3.9.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1369187 1369211 (view as bug list) Environment:
Last Closed: 2017-03-27 18:22:15 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:
Bug Depends On:    
Bug Blocks: 1211863, 1369187, 1369211    

Description Anuradha 2016-08-11 13:51:50 UTC
Description of problem:
in client3_3_lookup_cbk xdata is not passed to the upper xlators on failure. But there could be other xlators (like afr) that expect xdata to be present even on 
Fix it.

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

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Additional info:

Comment 1 Vijay Bellur 2016-08-11 13:53:02 UTC
REVIEW: (protocol/client: Unserialize xdata even if lookup fails) posted (#2) for review on master by Anuradha Talur (

Comment 2 Vijay Bellur 2016-08-12 07:11:51 UTC
REVIEW: (protocol/client: Unserialize xdata even if lookup fails) posted (#3) for review on master by Anuradha Talur (

Comment 3 Vijay Bellur 2016-08-16 10:49:47 UTC
REVIEW: (afr: set data and metadata readable to child up when no heal needed) posted (#1) for review on master by Anuradha Talur (

Comment 4 Vijay Bellur 2016-08-17 10:26:08 UTC
COMMIT: committed in master by Pranith Kumar Karampuri ( 
commit 59186114f9545fda529368ee26c3cd3d88a80751
Author: Anuradha Talur <>
Date:   Tue Aug 9 21:09:11 2016 +0530

    protocol/client: Unserialize xdata even if lookup fails
    AFR relies on xdata returned by lookup to determine if
    there are any files that need healing. This info is further
    used to optimize readdirp.
    In case of lookups with negative return value, client
    xlator was sending NULL xdata. Due to absence of xdata,
    AFR conservatively assumes that there are files that
    need healing, which is incorrect.
    Even in case of unsuccessful lookups, send the xdata received
    by protocol client so that higher xlators can get the info
    that they rely on.
    Change-Id: Id3a1023eb536180888eb2c0b39050000b76f7226
    BUG: 1366284
    Signed-off-by: Anuradha Talur <>
    Smoke: Gluster Build System <>
    Reviewed-by: Poornima G <>
    Tested-by: Poornima G <>
    CentOS-regression: Gluster Build System <>
    NetBSD-regression: NetBSD Build System <>
    Reviewed-by: Ashish Pandey <>
    Reviewed-by: Pranith Kumar Karampuri <>

Comment 7 Shyamsundar 2017-03-27 18:22:15 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.9.0, please open a new bug report.

glusterfs-3.9.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.