Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mimic: osd/PrimaryLogPG: handle object !exists in handle_watch_timeout #26709

Merged
merged 1 commit into from May 2, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

osd/PrimaryLogPG: handle object !exists in handle_watch_timeout

- watch on object
- watch timeout queued
- rados op deletes object
- handle_watch_timeout tries to delete it again

Fixes: http://tracker.ceph.com/issues/38432
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit bdf2d1b)
  • Loading branch information...
liewegas authored and Prashant D committed Feb 22, 2019
commit 74c43902111bf039bec5d53eb621676d0c1eed73
@@ -10746,6 +10746,10 @@ void PrimaryLogPG::handle_watch_timeout(WatchRef watch)
dout(10) << "handle_watch_timeout not active, no-op" << dendl;
return;
}
if (!obc->obs.exists) {
dout(10) << __func__ << " object " << obc->obs.oi.soid << " dne" << dendl;
return;
}
if (is_degraded_or_backfilling_object(obc->obs.oi.soid)) {
callbacks_for_degraded_object[obc->obs.oi.soid].push_back(
watch->get_delayed_cb()
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.