]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tests: ceph_test_rados_api_watch_notify: Allow for reconnect 40697/head
authorBrad Hubbard <bhubbard@redhat.com>
Mon, 22 Feb 2021 03:28:12 +0000 (13:28 +1000)
committerNathan Cutler <ncutler@suse.com>
Thu, 8 Apr 2021 16:18:08 +0000 (18:18 +0200)
commit96b3c0e756e57d58825d4e2155b42dcd007743ed
treec1f2d288ad742454b166c005a73ff21696186da9
parenta3bb71c89d324b13294707f66d71b7b74886e1b6
tests: ceph_test_rados_api_watch_notify: Allow for reconnect

An injected socket failure may cause rados_watch_check() to return
ENOENT instead of the expected ENOTCONN.

Fixes: https://tracker.ceph.com/issues/47719
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit 0a03a81f633f11bd3247b2f8f10f719c7b3d38e3)

Conflicts:
src/test/librados/watch_notify.cc
- in nautilus, we call rados_aio_create_completion() instead of
  rados_aio_create_completion2()
src/test/librados/watch_notify.cc