]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson: Create the shared promise before waited upon 63066/head
authorMohit Agrawal <moagrawa@redhat.com>
Mon, 14 Apr 2025 12:51:08 +0000 (18:21 +0530)
committerMohit Agrawal <moagrawa@redhat.com>
Wed, 30 Apr 2025 10:03:59 +0000 (15:33 +0530)
commitd89516072dd27f4d9837503f498e6bfc9e93a276
treeaecf8f460520209acbb3ef5ac273fc11a8a92e54
parent2ed4296866af3634d0799f3b958a3f1f6935daa0
crimson: Create the shared promise before waited upon

RecoveryBackend::pushes map creates each shared_promise
in wait_for_pushes call. There can be a situation where
set_pushed is called due to handled push reply (handle_push_reply)
before the shared_promise was even constructed due to backfill progress
is stuck.

Fixes: https://tracker.ceph.com/issues/70502
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
(cherry picked from commit 435f065a13c661c4f2439dee340a786ca4b5f31e)
src/crimson/osd/recovery_backend.h
src/crimson/osd/replicated_recovery_backend.cc