]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: avoid watcher remains after "rados watch" is interrupted
authorweixinwei <weixw3@lenovo.com>
Tue, 4 Apr 2023 09:40:12 +0000 (17:40 +0800)
committerweixinwei <weixw3@lenovo.com>
Mon, 17 Apr 2023 08:37:46 +0000 (16:37 +0800)
commit5bb185cbc9547a1b324c339753b4b3786073a58f
tree565ee3a25430e9fbf31ddfacb9218d1dac5eab14
parent832e1e9622225abb3635535447584837935a4c40
osd: avoid watcher remains after "rados watch" is interrupted

If "rados watch" is interrupted (e.g. killed), rados watcher remains in osd.
The reason is that in do_osd_op_effects, session is nullptr (rados client is killed),
resulting in WatchTimeout is not registerd.

Fixes: https://tracker.ceph.com/issues/58120
Signed-off-by: weixinwei <weixw3@lenovo.com>
src/osd/PrimaryLogPG.cc
src/osd/Watch.cc