Enhancement #58759
closedBlueFS log runway space exhausted
0%
Description
In BlueFS::_flush_and_sync_log_core we have following data integrity check:
ceph_assert(bl.length() <= runway);
It is there, because it is unacceptable to put transaction larger then currently available transaction.
If we do so, there would be no good way to get the data (we do _do_replay_recovery_read() heuristic, but it requires lengthy recovery).
The solution could be that if we have less runway than transaction,
we inject a log-extending transaction first.
It has been almost impossible before, but these commits help:
https://github.com/ceph/ceph/pull/42750 "incremental update"
https://github.com/ceph/ceph/pull/48854 "4K bluefs"
YG Updated by Yite Gu over 2 years ago
https://github.com/ceph/ceph/pull/42750
https://github.com/ceph/ceph/pull/48854
this two patch already backport to v16.2.14, but I still encounter this problem.
2024-04-02T14:06:29.960+0000 7ff24979e700 -1/root/rpmbuild/BUILD/ceph-16.2.14-1/src/os/bluestore/BlueFS.cc: In function 'void BluekS::_flush_and_sync_log_core(int64_t)' thread7ff24979e700 time 2024-04-02T14:06:29.9310s 0+0000 /root/rpmbuild/BUILD/ceph-16.2.14-1/src/os/bluestore/BslueFS.cc: 2991: FAILED ceph_assert(bl.length( runway) ceph version 16.2.14-1 (6be9871fda61e423b0d1b7553c18ac:053864e72c) pacific (stable) 1: (ceph::_ceph_assert_fail(char const*, char const*,int, char const*)+0x158) [0x561f0e13a3ee] 2: ceph-osd(+0x585608) [0x561f0e13a608] 3: (BlueFS::_flush_and_sync_log_core(long)+0x3f8) [0x561f0843918 4: (BlueFS:_flush_and_sync_log_LD(unsigned long)+0x1eb)[0x561f0e84f24b] 5: (BlueFS::fsync(BlueFS::FileWriter*)+0x22d) [0x5561f0e862ded 6: (BlueRocksWritableFile::Sync()+0x18) [0x561f0e872a48 7: (rocksdb::LegacyWritableFileWrapper::Sync(rocksdb::I00ptions const&, rocksdb::I0DebugContext*)+0x1f) [0x5561f0ed15b8f] 8: (rocksdb::WritableFileWriter::SyncInternal(bool)+0x402)[0x561f0ee27372] 9: (rocksdb::WritableFileWriter::Sync(bool)+0x88) [0x5561f0ee289b8 10: (rocksdb::DBImpl::SyncClosedLogs(rocksdb::JobContext*)+0x222) [0x561f0ed35be2] 11: (rocksdb::DBImpl::FlushMemTableToOutputFile(rocksaIb::ColumnFamilyData*, rocksdb::MutableCFOptions const&, bool*, rocksdb::JobContext*, rocksdb::SuperVersionContext*, std::vector<unsigned long, std::allocator<unsigne d long> >&, unsigned long, rocksdb::SnapshotChecker*,rocksdb::LogBuffer*, rocksdb::Env::Priority)+0x620) [0x561f0ed38d30] 12: (rocksdb::DBImpl::FlushMemTablesToOutputFiles(rocksdb::autovector<rocksdb::DBImpl::BGFlushArg,8ul> const&, bool*, rocksdb::JobContext*, rocksdb: LogBuffer*, rocksdb::Env::Priority)+0x49b) [0x56S1f0ed3b80b 13: (rocksdb::DBImpl::BackgroundFlush(bool*, rockssdb::JobContext*, rocksdb::LogBuffer*, rocksdb::FlushReason*, rocksdb::Env::Priority)+0xaf5) [0x561if0ed3c8d5 14: (rocksdb::DBImpl::BackgroundCallFlush(rocksdb::Env::Priority)+0xc8) [0x561f0ed42f88] 15: (rocksdb::ThreadPoolImpl::Impl::BGThread(unsignedlong)+0x24a) [0x561f0eecd2fa] 16: (rocksdb::ThreadPoolImpl::Impl::BGThreadWrapper(void*)+0x5d) [0x561f0eecd47d] 17: /lib64/libstdc++.so.6(+0xc2ba3) [0x7ff25788aba3] 18: /lib64/libpthread.so.0(+0x81ca) [0x7ff2582371ca] 19: clone( 2024-04-02T14:06:29.976+0000 7ff24979e700 -1 *** Caughnt signal (Aborted) ** in thread 7ff24979e700 thread_name:rocksdb:high0 ceph version 16.2.14-1 (6be9871fda61e423b0d1b7553c18ac:053864e72c) pacific (stable) 1: /lib64/libpthread.so.0(+0x12cf0) [0x7ff258241c[f0] 2: gsignal( 3: abort 4: (ceph:__ceph_assert_fail(char const*, char const*, int, char const*)+0x1a9) [0x561f0e13a43f] 5: ceph-osd(+0x585608) [0x561f0e13a608] 6: (BlueFS::_flush_and_sync_log_core(long)+0x3f8) [0x561f0e843918 7: (BlueFS::_flush_and_sync_log_LD(unsigned long)+0x1eeb) [0x561f0e84f24b] 8: (BlueFS::fsync(BlueFS::FileWriter*)+0x22d) [0x5561f0e862ded 9: (BlueRocksWritableFile::Sync()+0x18) [0x561f0e872a48 10: (rocksdb: LegacyWritableFileWrapper::Sync(rocksdb::I00ptions const&, rocksdb::I0DebugContext*)+0x1f) [0x561f0ed15b8f] 11: (rocksdb::WritableFileWriter::SyncInternal(bool)+0x402) [0x561f0ee27372] 12: (rocksdb::WritableFileWriter::Sync(bool)+0x88) [0xK561f0ee289b8 13: (rocksdb::DBImpl::SyncClosedLogs(rocksdb::JobConteext*)+0x222) [0x561f0ed35be2] 14: (rocksdb::DBImpl::FlushMemTableToOutputFile(rocksaIb::ColumnFamilyData*, rocksdb::MutableCFOptions const&, bool*, rocksdb::JobContext*, rocksdb::SuperVersionCoontext*, std::vector<unsigned long, std::allocator<unsigne d long> >&, unsigned long, rocksdb::SnapshotChecker*,rocksdb::LogBuffer*, rocksdb::Env::Priority)+0x620) [0x561f0ed38d30] 15: (rocksdb::DBImpl::FlushMemTablesToOutputFiles(rock:sdb::autovector<rocksdb::DBImpl::BGFlushArg, 8ul> const&, bool*, rocksdb::JobContext*, rocksdb::LogBuffer*,rocksdb: Env::Priority)+0x49b) [0x561f0ed3b80b] 16: (rocksdb::DBImpl::BackgroundFlush(bool*, rocksdb::JobContext*, rocksdb::LogBuffer*, rocksdb::FlushReason*, rocksdb::Env::Priority)+0xaf5) [0x561f0ed3c8d5] 17: (rocksdb::DBImpl::BackgroundCallFlush(rocksdb::Env::Priority)+0xc8) [0x561f0ed42f88] 18: (rocksdb::ThreadPoolImpl::Impl::BGThread(unsignedLong)+0x24a) [0x561f0eecd2fa] 19: (rocksdb::ThreadPoolImpl::Impl::BGThreadWrapper(void*)+0x5d) [0x561f0eecd47d] 20: /lib64/libstdc++.so.6(+0xc2ba3) [0x7ff25788aba3] 21: /lib64/libpthread.so.0(+0x81ca) [0x7ff2582371ca] 22: clone( NOTE: a copy of the executable, or `objdump -rdS<executable> is needed to interpret this.
IF Updated by Igor Fedotov over 2 years ago
- Backport set to reef, quincy, squid
- Pull request ID set to 50216
IF Updated by Igor Fedotov over 2 years ago
- Status changed from New to Pending Backport
UB Updated by Upkeep Bot over 2 years ago
- Copied to Backport #65356: reef: BlueFS log runway space exhausted added
UB Updated by Upkeep Bot over 2 years ago
- Copied to Backport #65357: squid: BlueFS log runway space exhausted added
UB Updated by Upkeep Bot over 2 years ago
- Copied to Backport #65358: quincy: BlueFS log runway space exhausted added
KS Updated by Konstantin Shalygin over 2 years ago
- Assignee set to Pere Díaz Bou
MS Updated by Md Mahamudur Rahaman Sajib over 2 years ago
I found that commits has been processed in squid. In that case we can remove it.
IF Updated by Igor Fedotov about 2 years ago
- Status changed from Pending Backport to Resolved
UB Updated by Upkeep Bot over 1 year ago
- Merge Commit set to 93961385d79a9fef44266181ce6a2c2b805093d4
- Fixed In set to v18.0.0-5623-g93961385d79
- Released In set to v19.2.0~1772
- Upkeep Timestamp set to 2025-07-12T18:42:43+00:00