Project

General

Profile

Actions

Bug #45544

closed

[librbd] failure in unit test due to race in disable mirroring class destruction

Added by Jason Dillaman almost 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Jason Dillaman
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

[ RUN      ] TestMirroring.SnapshotRemoveOnDisable
/home/jenkins-build/build/workspace/ceph-pull-requests/src/common/mutex_debug.h: In function 'ceph::mutex_debug_detail::mutex_debug_impl<<anonymous> >::~mutex_debug_impl() [with bool Recursive = false]' thread 7f3ad3837700 time 2020-05-13T23:38:39.618346+0000
/home/jenkins-build/build/workspace/ceph-pull-requests/src/common/mutex_debug.h: 109: FAILED ceph_assert(r == 0)
 ceph version Development (no_version) pacific (dev)
 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x19d) [0x7f3b21d26ffb]
 2: (()+0x159a27d) [0x7f3b21d2727d]
 3: (ceph::mutex_debug_detail::mutex_debug_impl<false>::~mutex_debug_impl()+0x31) [0x559419866d8d]
 4: (librbd::mirror::DisableRequest<librbd::ImageCtx>::~DisableRequest()+0x1e) [0x55941a0008cc]
 5: (librbd::util::detail::C_StateCallbackAdapter<librbd::mirror::DisableRequest<librbd::ImageCtx>, &librbd::mirror::DisableRequest<librbd::ImageCtx>::handle_remove_mirror_image, true>::complete(int)+0x63) [0x55941a0068c5]
 6: (librbd::mirror::ImageRemoveRequest<librbd::ImageCtx>::finish(int)+0x14d) [0x55941a629577]
 7: (librbd::mirror::ImageRemoveRequest<librbd::ImageCtx>::handle_notify_mirroring_watcher(int)+0x2ac) [0x55941a6293c4]
 8: (librbd::util::detail::C_CallbackAdapter<librbd::mirror::ImageRemoveRequest<librbd::ImageCtx>, &librbd::mirror::ImageRemoveRequest<librbd::ImageCtx>::handle_notify_mirroring_watcher>::finish(int)+0x24) [0x55941a6298a2]
 9: (Context::complete(int)+0x27) [0x559419856d1b]
 10: (void librbd::util::detail::rados_callback<Context, &Context::complete>(void*, void*)+0x43) [0x55941a5518b1]
 11: (()+0x1fd2ae3) [0x55941a208ae3]
 12: (librados::TestRadosClient::finish_aio_completion(librados::AioCompletionImpl*, int)+0x24) [0x55941a20996c]
 13: (librados::TestIoCtxImpl::handle_aio_notify_complete(librados::AioCompletionImpl*, int)+0x44) [0x55941a1ed838]
 14: (librados::TestIoCtxImpl::C_AioNotify::finish(int)+0x2d) [0x55941a1edb93]
 15: (Context::complete(int)+0x27) [0x559419856d1b]
 16: (Finisher::finisher_thread_entry()+0x39d) [0x7f3b21c51173]
 17: (Finisher::FinisherThread::entry()+0x1c) [0x55941a209eb4]
 18: (Thread::entry_wrapper()+0x78) [0x7f3b21cc4494]
 19: (Thread::_entry_func(void*)+0x18) [0x7f3b21cc4412]
 20: (()+0x76db) [0x7f3b2b6946db]
 21: (clone()+0x3f) [0x7f3b1f6fc88f]
/home/jenkins-build/build/workspace/ceph-pull-requests/src/test/run-rbd-unit-tests.sh: line 20: 11958 Aborted                 RBD_FEATURES=$i unittest_librbd

Related issues 1 (0 open1 closed)

Copied to rbd - Backport #45598: octopus: [librbd] failure in unit test due to race in disable mirroring class destructionResolvedNathan CutlerActions
Actions #1

Updated by Jason Dillaman almost 4 years ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 35074
Actions #2

Updated by Mykola Golub almost 4 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #3

Updated by Nathan Cutler almost 4 years ago

  • Copied to Backport #45598: octopus: [librbd] failure in unit test due to race in disable mirroring class destruction added
Actions #4

Updated by Nathan Cutler almost 4 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Actions

Also available in: Atom PDF