]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix potential realm watch lost 29972/head
authorTianshan Qu <tianshan@xsky.com>
Sun, 28 Jul 2019 16:42:39 +0000 (00:42 +0800)
committerNathan Cutler <ncutler@suse.com>
Wed, 28 Aug 2019 15:51:31 +0000 (17:51 +0200)
commit63ecdfa5ddeb6fbb39a85a7cb0a843b97b94c3c7
tree3c494bcd90922d9097aa3c154b539408f082329e
parent8024fa1c6b7a57dd9376199225c889fb0b6241dd
rgw: fix potential realm watch lost

realm watch only restart on -ENOTCONN, but if we fail to maintain the watch ping, the OSD will return -ETIMEDOUT.
The objecter will keep the watch err on last_error, if last_error not empty, it will not call handle_error in future error,
so it will never get the chance to rewatch on following -ENOTCONN error.

Fixes: http://tracker.ceph.com/issues/40991
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
(cherry picked from commit c2d6cbe1b1f4b7c26fa8da4eefa291b4bdb48835)
src/rgw/rgw_realm_watcher.cc