This ensures we release our in-progress recovery counters, which prevents
recovery from getting blocked indefinitely when a pool removal races with
recovery ops.
Fixes: #4217
Backport: bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
dout(10) << "on_removal" << dendl;
apply_and_flush_repops(false);
remove_watchers_and_notifies();
+
+ clear_primary_state();
+ osd->remove_want_pg_temp(info.pgid);
+ cancel_recovery();
}
void ReplicatedPG::on_shutdown()