]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: return ENOENT if pool information is invalid during tier-flush
authormyoungwon oh <ohmyoungwon@gmail.com>
Tue, 28 Jun 2022 04:42:21 +0000 (13:42 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Fri, 15 Jul 2022 12:38:26 +0000 (21:38 +0900)
commit3de27b25cb6104d810f7af81809a0813df6c46a4
treecbd99435029e357999c78f1f6362cc53c6ffc597
parentdf19b8dbc7e9eaada7f0018722864827ea92d988
osd: return ENOENT if pool information is invalid during tier-flush

During tier-flush, OSD sends reference increase message to target OSD.
At this point, sending message with invalid pool information (e.g., deleted pool)
causes unexpected behavior.

Therefore, this commit return ENOENT early before sending the message

fixes: https://tracker.ceph.com/issues/53294

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h
src/test/librados/tier_cxx.cc