]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: return ENOENT if pool information is invalid during tier-flush 46748/head
authormyoungwon oh <ohmyoungwon@gmail.com>
Tue, 28 Jun 2022 04:42:21 +0000 (13:42 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Thu, 21 Jul 2022 00:56:46 +0000 (09:56 +0900)
commitfee8115dfd18042e8845a8452026a611e4517976
tree02e7f3e5a039dbacf4961563a4db4dab92e19147
parent1610a624f2ba564d1aa90a132d3b3a4f411012da
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>
(cherry picked from 3de27b25cb6104d810f7af81809a0813df6c46a4)
src/osd/PrimaryLogPG.cc
src/osd/PrimaryLogPG.h
src/test/librados/tier_cxx.cc