Project

General

Profile

Actions

Bug #50578

closed

BlueFS::FileWriter::lock aborts when trying to `--mkfs`

Added by Deepika Upadhyay almost 3 years ago. Updated almost 3 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

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

Description

with vstart.sh on centos 8

     -14> 2021-04-29T10:21:22.043+0000 7f0a773330c0  5 asok(0x55757b186000) register_command bluestore allocator fragmentation bluefs-wal hook 0x55757fd767b0
     -13> 2021-04-29T10:21:22.043+0000 7f0a773330c0  1 bluefs _init_alloc new, id 1, allocator name bluefs-db, allocator type hybrid, capacity 0x40000000, block size 0x100000
     -12> 2021-04-29T10:21:22.043+0000 7f0a773330c0  5 asok(0x55757b186000) register_command bluestore allocator dump bluefs-db hook 0x55757fd76780
     -11> 2021-04-29T10:21:22.043+0000 7f0a773330c0  5 asok(0x55757b186000) register_command bluestore allocator score bluefs-db hook 0x55757fd76780
     -10> 2021-04-29T10:21:22.043+0000 7f0a773330c0  5 asok(0x55757b186000) register_command bluestore allocator fragmentation bluefs-db hook 0x55757fd76780
      -9> 2021-04-29T10:21:22.043+0000 7f0a773330c0  1 bluefs _init_alloc shared, id 2, capacity 0x1900000000, block size 0x10000
      -8> 2021-04-29T10:21:22.089+0000 7f0a773330c0  1 bluefs mkfs uuid a4431054-befa-4926-9266-cd22348dfe0b
      -7> 2021-04-29T10:21:22.136+0000 7f0a773330c0  0
  ------------------------------------
  existing dependency BlueFS::lock (30) -> BlueFS::FileWriter::lock (33) at:
   ceph version 17.0.0-3680-gcc9b8d69626 (cc9b8d696262582995acccb85fc6e203059e7bab) quincy (dev)
   1: (ceph::mutex_debug_detail::mutex_debugging_base::_will_lock(bool)+0x4a) [0x55757747a192]
   2: (ceph::mutex_debug_detail::mutex_debug_impl<false>::lock(bool)+0x38) [0x55757679b51e]
   3: (BlueFS::_flush_range(BlueFS::FileWriter*, unsigned long, unsigned long)+0x1916) [0x557577255dbc]
   4: (BlueFS::_flush(BlueFS::FileWriter*, bool, bool*)+0x51e) [0x557577257106]
   5: (BlueFS::_flush_and_sync_log(std::unique_lock<ceph::mutex_debug_detail::mutex_debug_impl<false> >&, unsigned long, unsigned long)+0x114e) [0x557577252d7a]
   6: (BlueFS::mkfs(uuid_d, bluefs_layout_t const&)+0x60a) [0x55757723c892]
   7: (BlueStore::_open_bluefs(bool, bool)+0x5b8) [0x5575770bdbf2]
   8: (BlueStore::_prepare_db_environment(bool, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::__cxx11::basic_string<char, std::  char_traits<char>, std::allocator<char> >*)+0x879) [0x5575770bf791]                                                                                                            9: (BlueStore::_open_db(bool, bool, bool)+0x103) [0x5575770c0cab]
   10: (BlueStore::mkfs()+0x16a3) [0x5575770c6731]
   11: (OSD::mkfs(ceph::common::CephContext*, ObjectStore*, uuid_d, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)+0xd0)                 [0x5575767bfa0e]                                                                                                                                                               12: main()
   13: __libc_start_main()
   14: _start()


Related issues 1 (0 open1 closed)

Is duplicate of bluestore - Bug #50571: deadlock in fileWriterResolved

Actions
Actions #1

Updated by Igor Fedotov almost 3 years ago

Presumably duplicate of #50571

Actions #2

Updated by Neha Ojha almost 3 years ago

  • Status changed from New to Duplicate
Actions #3

Updated by Neha Ojha almost 3 years ago

  • Is duplicate of Bug #50571: deadlock in fileWriter added
Actions

Also available in: Atom PDF