Bug 1765017

Summary: gf_event doesn't work for glfsheal process
Product: [Community] GlusterFS Reporter: Pranith Kumar K <pkarampu>
Component: eventsapiAssignee: bugs <bugs>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: pasik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1793085 (view as bug list) Environment:
Last Closed: 2019-10-30 05:57:23 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: 1758923, 1793085, 1793096    

Description Pranith Kumar K 2019-10-24 07:27:30 UTC
We noticed this issue when gluster volume heal <volname> info fails on one of the bricks because gf_event() is taking ~25 seconds to do getaddrinfo. Here is the relevant stack trace:

    naddrs=naddrs@entry=0x7f8c3cfaa490) at ../sysdeps/posix/getaddrinfo.c:865
#8  0x00007f8c4976f2cd in __GI_getaddrinfo (name=0x7f8c4c6d0af0 "/var/run/glusterd.socket", 
    service=service@entry=0x0, hints=hints@entry=0x7f8c3cfaa640, pai=pai@entry=0x7f8c3cfaa608)
    at ../sysdeps/posix/getaddrinfo.c:2419
#9  0x00007f8c4beb3366 in _gf_event (event=event@entry=EVENT_AFR_SUBVOL_UP, 
    fmt=fmt@entry=0x7f8c2eead638 "subvol=%s") at events.c:69
#10 0x00007f8c2ee94ba4 in __afr_handle_child_up_event (this=this@entry=0x7f8c3000f070, 
    child_xlator=child_xlator@entry=0x7f8c3000a630, idx=idx@entry=1, 
    halo_max_latency_msec=halo_max_latency_msec@entry=0, event=event@entry=0x7f8c3cfaa82c, 
    call_psh=call_psh@entry=0x7f8c3cfaa838, up_child=up_child@entry=0x7f8c3cfaa83c)

In glfsheal gf_event should happen on localhost. This bz tracks this bug.

Comment 1 Worker Ant 2019-10-24 07:36:12 UTC
REVIEW: https://review.gluster.org/23606 (gf-event: Handle unix volfile-servers) posted (#1) for review on master by Pranith Kumar Karampuri

Comment 2 Worker Ant 2019-10-30 05:57:23 UTC
REVIEW: https://review.gluster.org/23606 (gf-event: Handle unix volfile-servers) merged (#2) on master by Pranith Kumar Karampuri