Bug 1426125 - Add logs to identify whether disconnects are voluntary or due to network problems
Summary: Add logs to identify whether disconnects are voluntary or due to network prob...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: rpc
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Milind Changire
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1426034 1451977 1452114
TreeView+ depends on / blocked
 
Reported: 2017-02-23 09:19 UTC by Milind Changire
Modified: 2017-05-30 18:45 UTC (History)
4 users (show)

Fixed In Version: glusterfs-3.11.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1426034
: 1451977 1452114 (view as bug list)
Environment:
Last Closed: 2017-05-30 18:45:26 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Comment 1 Milind Changire 2017-02-23 09:20:33 UTC
Description of problem:

One of the common problems we encounter are frequent connects/disconnects. Frequent disconnects can be either:

1. voluntary where the process calls a shutdown (2)/close (2) on an otherwise healthy socket connection.
2. involuntary where we get a POLLERR event from network.

While debugging this class of issues, it would help if can identify whether a particular disconnect falls into which of the two above categories. We need to add enough log messages to help us classify.

Comment 2 Worker Ant 2017-02-23 09:21:50 UTC
REVIEW: https://review.gluster.org/16732 (rpc: log more about socket disconnects) posted (#1) for review on master by Milind Changire (mchangir)

Comment 3 Worker Ant 2017-02-23 12:30:58 UTC
REVIEW: https://review.gluster.org/16732 (rpc: log more about socket disconnects) posted (#2) for review on master by Milind Changire (mchangir)

Comment 4 Worker Ant 2017-03-01 17:27:58 UTC
COMMIT: https://review.gluster.org/16732 committed in master by Jeff Darcy (jdarcy) 
------
commit 67a35ac54bfd61a920c1919fbde588a04ac3358a
Author: Milind Changire <mchangir>
Date:   Thu Feb 23 17:58:46 2017 +0530

    rpc: log more about socket disconnects
    
    Log more about the different paths leading to socket disconnect for ease
    of debugging.
    
    Log via gf_log_callingfn() in __socket_disconnect() at loglevel TRACE if
    socket connection is being torn down.
    
    Change-Id: I1e551c2d685784b5ec747f481179f64d524c0461
    BUG: 1426125
    Signed-off-by: Milind Changire <mchangir>
    Reviewed-on: https://review.gluster.org/16732
    Smoke: Gluster Build System <jenkins.org>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Jeff Darcy <jdarcy>

Comment 5 Worker Ant 2017-05-18 04:23:52 UTC
REVIEW: https://review.gluster.org/17321 (rpc: log more about socket disconnects) posted (#1) for review on release-3.10 by Milind Changire (mchangir)

Comment 6 Shyamsundar 2017-05-30 18:45:26 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.11.0, please open a new bug report.

glusterfs-3.11.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/announce/2017-May/000073.html
[2] https://www.gluster.org/pipermail/gluster-users/


Note You need to log in before you can comment on or make changes to this bug.