diff options
author | Raghavendra G <rgowdapp@redhat.com> | 2019-06-04 19:22:45 +0530 |
---|---|---|
committer | Ravishankar N <ravishankar@redhat.com> | 2019-08-09 05:03:46 +0000 |
commit | 23e391b6d1db72563a0f8e239d7877c9839d49fd (patch) | |
tree | 1290d3645d3760c9dd8bad9d4893e4e05c33b9cb /tests/utils/create-files.py | |
parent | 0386ca39690fe4cd9d07378b408a934d666321c2 (diff) |
protocol/client: propagte GF_EVENT_CHILD_PING only for connections to brick
Two reasons:
* ping responses from glusterd may not be relevant for Halo
replication. Instead, it might be interested in only knowing whether
the brick itself is responsive.
* When a brick is killed, propagating GF_EVENT_CHILD_PING of ping
response from glusterd results in GF_EVENT_DISCONNECT spuriously
propagated to parent xlators. These DISCONNECT events are from the
connections client establishes with glusterd as part of its
reconnect logic. Without GF_EVENT_CHILD_PING, the last event
propagated to parent xlators would be the first DISCONNECT event
from brick and hence subsequent DISCONNECTS to glusterd are not
propagated as protocol/client prevents same event being propagated
to parent xlators consecutively. propagating GF_EVENT_CHILD_PING for
ping responses from glusterd would change the last_sent_event to
GF_EVENT_CHILD_PING and hence protocol/client cannot prevent
subsequent DISCONNECT events
Signed-off-by: Raghavendra G <rgowdapp@redhat.com>
Fixes: bz#1739336
Change-Id: I50276680c52f05ca9e12149a3094923622d6eaef
(cherry picked from commit 5d66eafec581fb3209af74595784be8854ca40a4)
Diffstat (limited to 'tests/utils/create-files.py')
0 files changed, 0 insertions, 0 deletions