]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/rados: notify callback reconnect 48113/head
authorNitzanMordhai <nmordech@redhat.com>
Thu, 18 Aug 2022 11:33:15 +0000 (11:33 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Thu, 15 Sep 2022 04:50:42 +0000 (07:50 +0300)
commit77160b190a0f96a432b52a402a88c39b2032e6a6
tree1841767e66dec38a548fffa6d769085e7c38dcae
parent21b9ceee8672f718c3294b21f213233b2d372aa2
pybind/rados: notify callback reconnect
when testing with socket injection, reconnect won't call error callback
for each reconnect, the callback will be called.
changing the callback count of notify by the data and increass only
when the data is changed, if the data is the same, we probably reconnecting
due to socket injection.

Fixes: https://tracker.ceph.com/issues/45721
Signed-off-by: Nitzan Mordechai <nmordec@redhat.com>
(cherry picked from commit 583b903ff758d1437c411fa7a2e2aff770844d4d)
src/test/pybind/test_rados.py