+++ This bug was initially created as a clone of Bug #1716979 +++
+++ This bug was initially created as a clone of Bug #1703423 +++
Description of problem:
Issue was reported upstream by a user via https://github.com/gluster/glusterfs/issues/648
I'm seeing that if I kill a brick in a replica 3 system, AFR keeps getting child_down event repeatedly for the same child. This seems to be a regression in behaviour as it does not occur in rhgs-3.4.0. In 3.4.0, I get exactly one GF_EVENT_CHILD_DOWN for 1 disconnect.
Version-Release number of selected component (if applicable):
rhgs-3.5 branch (source install)
Steps to Reproduce:
1. Create a replica 3 volume and start it.
2. Put a break point in __afr_handle_child_down_event() in glustershd process.
3. Kill any one brick.
The break point keeps getting hit once every 3 seconds or so repeatedly.
Only 1 event per one disconnect.
I haven't checked if the same happens for GF_EVENT_CHILD_UP as well. I think this is regression that needs to be fixed. If this is not a bug please feel free to close stating why.
REVIEW: https://review.gluster.org/23181 (protocol/client: propagte GF_EVENT_CHILD_PING only for connections to brick) posted (#1) for review on release-5 by Ravishankar N
REVIEW: https://review.gluster.org/23181 (protocol/client: propagte GF_EVENT_CHILD_PING only for connections to brick) merged (#1) on release-5 by Ravishankar N