]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librados_test_stub: handle object doesn't exist gracefully 25667/head
authorMykola Golub <mgolub@suse.com>
Fri, 21 Dec 2018 11:30:09 +0000 (13:30 +0200)
committerMykola Golub <mgolub@suse.com>
Fri, 21 Dec 2018 11:33:18 +0000 (13:33 +0200)
Fixes: https://tracker.ceph.com/issues/37672
Signed-off-by: Mykola Golub <mgolub@suse.com>
src/test/librados_test_stub/TestWatchNotify.cc

index 88cfcbe316dae07e3f452e393b5278c33cc39d92..0068d075e6016fa76704e544323ca2ffb5ded0c9 100644 (file)
@@ -360,7 +360,10 @@ void TestWatchNotify::finish_notify(TestRadosClient *rados_client,
 
   ceph_assert(m_lock.is_locked());
   SharedWatcher watcher = get_watcher(pool_id, nspace, oid);
-  ceph_assert(watcher);
+  if (!watcher) {
+    ldout(cct, 1) << "oid=" << oid << ": not found" << dendl;
+    return;
+  }
 
   NotifyHandles::iterator it = watcher->notify_handles.find(notify_id);
   if (it == watcher->notify_handles.end()) {