Skip to content

os/bluestore: optional SharedBlob on Blob structure - #53565

Merged
aclamk merged 16 commits into
ceph:mainfrom
pereman2:shared-blob-to-blob
Feb 16, 2024
Merged

aclamk merged 16 commits into
ceph:mainfrom
pereman2:shared-blob-to-blob

Conversation

@pereman2

@pereman2 pereman2 commented Sep 20, 2023 •

Copy link
Copy Markdown
Contributor

Blob::shared_blob was always set to something even though a SharedBlob wasn't really "created". In this PR we make shared_blob truly optional and only set it to a real instance if it's really necessary.

Some results:

bin/rados bench 10 write -p .mgr -t 4 --num-objects 20000 --no-cleanup
# with changes
"bluestore_blob_bytes": 4939272,
"bluestore_blob_items": 22867,
"bluestore_shared_blob_bytes": 0,
"bluestore_shared_blob_items": 0,

# without changes
"bluestore_blob_bytes": 4618200,
"bluestore_blob_items": 23091,
"bluestore_shared_blob_bytes": 554184,
"bluestore_shared_blob_items": 23091,

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@pereman2
pereman2 marked this pull request as ready for review September 25, 2023 14:47
@pereman2
pereman2 requested a review from a team as a code owner September 25, 2023 14:47
@pereman2
pereman2 requested a review from aclamk September 25, 2023 14:47
@pereman2 pereman2 changed the title [WIP] os/bluestore: move fields from SharedBlob to SharedBlob [WIP] os/bluestore: move fields from SharedBlob to Blob Sep 25, 2023
@ifed01

ifed01 commented Sep 25, 2023

Copy link
Copy Markdown
Contributor

@pereman2 - please update the caption, it's confusing ;)

@pereman2

Copy link
Copy Markdown
Contributor Author
bin/rados bench 10 write -p .mgr -t 4 --num-objects 20000 --no-cleanup
# with changes
"bluestore_blob_bytes": 4939272,
"bluestore_blob_items": 22867,
"bluestore_shared_blob_bytes": 0,
"bluestore_shared_blob_items": 0,

# without changes
"bluestore_blob_bytes": 4618200,
"bluestore_blob_items": 23091,
"bluestore_shared_blob_bytes": 554184,
"bluestore_shared_blob_items": 23091,

@github-actions github-actions Bot added the tests label Sep 26, 2023
@pereman2 pereman2 changed the title [WIP] os/bluestore: move fields from SharedBlob to Blob os/bluestore: optional SharedBlob on Blob structure Sep 26, 2023
@petrutlucian94

Copy link
Copy Markdown
Contributor

I see a potentially related OSD crash:

/home/ubuntu/ceph/src/os/bluestore/BlueStore.cc: 1428: FAILED ceph_assert(buffer_bytes >= b->length)

 ceph version cf68ec (ccf68ec392c31a754334e6538793e11c8b32572a) reef (dev)
 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x15d) [0x560dcf628386]
 2: /home/ubuntu/ceph/build/bin/ceph-osd(+0x6275b5) [0x560dcf6285b5]
 3: (TwoQBufferCacheShard::_rm(BlueStore::Buffer*)+0x233) [0x560dcfdb7cf3]
 4: (BlueStore::BufferSpace::_rm_buffer(BlueStore::BufferCacheShard*, std::_Rb_tree_iterator<std::pair<unsigned int const, std::unique_ptr<BlueStore::Buffer, std::default_delete<BlueStore::Buffer> > > >)+0x3d) [0x560dcfd9986d]
 5: (BlueStore::BufferSpace::_discard(BlueStore::BufferCacheShard*, unsigned int, unsigned int)+0x9cd) [0x560dcfcdd5dd]
 6: (BlueStore::Blob::discard_unallocated(BlueStore::Collection*)+0xcf) [0x560dcfce572f]
 7: (BlueStore::_wctx_finish(BlueStore::TransContext*, boost::intrusive_ptr<BlueStore::Collection>&, boost::intrusive_ptr<BlueStore::Onode>&, BlueStore::WriteContext*, std::set<BlueStore::SharedBlob*, std::less<BlueStore::SharedBlob*>, std::allocator<BlueStore::SharedBlob*> >*)+0x151) [0x560dcfd4ae21]
 8: (BlueStore::_do_truncate(BlueStore::TransContext*, boost::intrusive_ptr<BlueStore::Collection>&, boost::intrusive_ptr<BlueStore::Onode>&, unsigned long, std::set<BlueStore::SharedBlob*, std::less<BlueStore::SharedBlob*>, std::allocator<BlueStore::SharedBlob*> >*)+0x31c) [0x560dcfd4ceac]
 9: (BlueStore::_truncate(BlueStore::TransContext*, boost::intrusive_ptr<BlueStore::Collection>&, boost::intrusive_ptr<BlueStore::Onode>&, unsigned long)+0xa7) [0x560dcfd4d297]
 10: (BlueStore::_txc_add_transaction(BlueStore::TransContext*, ceph::os::Transaction*)+0x1700) [0x560dcfd6e2c0]
 11: (BlueStore::queue_transactions(boost::intrusive_ptr<ObjectStore::CollectionImpl>&, std::vector<ceph::os::Transaction, std::allocator<ceph::os::Transaction> >&, boost::intrusive_ptr<TrackedOp>, ThreadPool::TPHandle*)+0x2ef) [0x560dcfd75c9f]
 12: (non-virtual thunk to PrimaryLogPG::queue_transactions(std::vector<ceph::os::Transaction, std::allocator<ceph::os::Transaction> >&, boost::intrusive_ptr<OpRequest>)+0x53) [0x560dcf977663]
 13: (ReplicatedBackend::submit_transaction(hobject_t const&, object_stat_sum_t const&, eversion_t const&, std::unique_ptr<PGTransaction, std::default_delete<PGTransaction> >&&, eversion_t const&, eversion_t const&, std::vector<pg_log_entry_t, std::allocator<pg_log_entry_t> >&&, std::optional<pg_hit_set_history_t>&, Context*, unsigned long, osd_reqid_t, boost::intrusive_ptr<OpRequest>)+0x8a8) [0x560dcfbe0cf8]
 14: (PrimaryLogPG::issue_repop(PrimaryLogPG::RepGather*, PrimaryLogPG::OpContext*)+0x8ba) [0x560dcf8ea3ca]
 15: (PrimaryLogPG::execute_ctx(PrimaryLogPG::OpContext*)+0x11c5) [0x560dcf950235]
 16: (PrimaryLogPG::do_op(boost::intrusive_ptr<OpRequest>&)+0x382b) [0x560dcf95486b]
 17: (OSD::dequeue_op(boost::intrusive_ptr<PG>, boost::intrusive_ptr<OpRequest>, ThreadPool::TPHandle&)+0x1c9) [0x560dcf78bbd9]
 18: (ceph::osd::scheduler::PGOpItem::run(OSD*, OSDShard*, boost::intrusive_ptr<PG>&, ThreadPool::TPHandle&)+0x64) [0x560dcfac7b04]
 19: (OSD::ShardedOpWQ::_process(unsigned int, ceph::heartbeat_handle_d*)+0x618) [0x560dcf7b35d8]
 20: (ShardedThreadPool::shardedthreadpool_worker(unsigned int)+0x40b) [0x560dcfeb145b]
 21: (ShardedThreadPool::WorkThreadSharded::entry()+0x14) [0x560dcfeb4614]
 22: (Thread::entry_wrapper()+0x54) [0x560dcfe9e2b4]
 23: /lib/x86_64-linux-gnu/libc.so.6(+0x94b43) [0x7fc4d9427b43]
 24: /lib/x86_64-linux-gnu/libc.so.6(+0x126a00) [0x7fc4d94b9a00]

https://jenkins.ceph.com/view/Windows/job/ceph-windows-pull-requests/29325/artifact/artifacts/cluster/ceph_logs/osd.2.log

@pereman2

Copy link
Copy Markdown
Contributor Author

I see a potentially related OSD crash:

/home/ubuntu/ceph/src/os/bluestore/BlueStore.cc: 1428: FAILED ceph_assert(buffer_bytes >= b->length)

 ceph version cf68ec (ccf68ec392c31a754334e6538793e11c8b32572a) reef (dev)
 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x15d) [0x560dcf628386]
 2: /home/ubuntu/ceph/build/bin/ceph-osd(+0x6275b5) [0x560dcf6285b5]
 3: (TwoQBufferCacheShard::_rm(BlueStore::Buffer*)+0x233) [0x560dcfdb7cf3]
 4: (BlueStore::BufferSpace::_rm_buffer(BlueStore::BufferCacheShard*, std::_Rb_tree_iterator<std::pair<unsigned int const, std::unique_ptr<BlueStore::Buffer, std::default_delete<BlueStore::Buffer> > > >)+0x3d) [0x560dcfd9986d]
 5: (BlueStore::BufferSpace::_discard(BlueStore::BufferCacheShard*, unsigned int, unsigned int)+0x9cd) [0x560dcfcdd5dd]
 6: (BlueStore::Blob::discard_unallocated(BlueStore::Collection*)+0xcf) [0x560dcfce572f]
 7: (BlueStore::_wctx_finish(BlueStore::TransContext*, boost::intrusive_ptr<BlueStore::Collection>&, boost::intrusive_ptr<BlueStore::Onode>&, BlueStore::WriteContext*, std::set<BlueStore::SharedBlob*, std::less<BlueStore::SharedBlob*>, std::allocator<BlueStore::SharedBlob*> >*)+0x151) [0x560dcfd4ae21]
 8: (BlueStore::_do_truncate(BlueStore::TransContext*, boost::intrusive_ptr<BlueStore::Collection>&, boost::intrusive_ptr<BlueStore::Onode>&, unsigned long, std::set<BlueStore::SharedBlob*, std::less<BlueStore::SharedBlob*>, std::allocator<BlueStore::SharedBlob*> >*)+0x31c) [0x560dcfd4ceac]
 9: (BlueStore::_truncate(BlueStore::TransContext*, boost::intrusive_ptr<BlueStore::Collection>&, boost::intrusive_ptr<BlueStore::Onode>&, unsigned long)+0xa7) [0x560dcfd4d297]
 10: (BlueStore::_txc_add_transaction(BlueStore::TransContext*, ceph::os::Transaction*)+0x1700) [0x560dcfd6e2c0]
 11: (BlueStore::queue_transactions(boost::intrusive_ptr<ObjectStore::CollectionImpl>&, std::vector<ceph::os::Transaction, std::allocator<ceph::os::Transaction> >&, boost::intrusive_ptr<TrackedOp>, ThreadPool::TPHandle*)+0x2ef) [0x560dcfd75c9f]
 12: (non-virtual thunk to PrimaryLogPG::queue_transactions(std::vector<ceph::os::Transaction, std::allocator<ceph::os::Transaction> >&, boost::intrusive_ptr<OpRequest>)+0x53) [0x560dcf977663]
 13: (ReplicatedBackend::submit_transaction(hobject_t const&, object_stat_sum_t const&, eversion_t const&, std::unique_ptr<PGTransaction, std::default_delete<PGTransaction> >&&, eversion_t const&, eversion_t const&, std::vector<pg_log_entry_t, std::allocator<pg_log_entry_t> >&&, std::optional<pg_hit_set_history_t>&, Context*, unsigned long, osd_reqid_t, boost::intrusive_ptr<OpRequest>)+0x8a8) [0x560dcfbe0cf8]
 14: (PrimaryLogPG::issue_repop(PrimaryLogPG::RepGather*, PrimaryLogPG::OpContext*)+0x8ba) [0x560dcf8ea3ca]
 15: (PrimaryLogPG::execute_ctx(PrimaryLogPG::OpContext*)+0x11c5) [0x560dcf950235]
 16: (PrimaryLogPG::do_op(boost::intrusive_ptr<OpRequest>&)+0x382b) [0x560dcf95486b]
 17: (OSD::dequeue_op(boost::intrusive_ptr<PG>, boost::intrusive_ptr<OpRequest>, ThreadPool::TPHandle&)+0x1c9) [0x560dcf78bbd9]
 18: (ceph::osd::scheduler::PGOpItem::run(OSD*, OSDShard*, boost::intrusive_ptr<PG>&, ThreadPool::TPHandle&)+0x64) [0x560dcfac7b04]
 19: (OSD::ShardedOpWQ::_process(unsigned int, ceph::heartbeat_handle_d*)+0x618) [0x560dcf7b35d8]
 20: (ShardedThreadPool::shardedthreadpool_worker(unsigned int)+0x40b) [0x560dcfeb145b]
 21: (ShardedThreadPool::WorkThreadSharded::entry()+0x14) [0x560dcfeb4614]
 22: (Thread::entry_wrapper()+0x54) [0x560dcfe9e2b4]
 23: /lib/x86_64-linux-gnu/libc.so.6(+0x94b43) [0x7fc4d9427b43]
 24: /lib/x86_64-linux-gnu/libc.so.6(+0x126a00) [0x7fc4d94b9a00]

https://jenkins.ceph.com/view/Windows/job/ceph-windows-pull-requests/29325/artifact/artifacts/cluster/ceph_logs/osd.2.log

thanks for taking the time! It should be fixed now, it was related

Comment thread src/os/bluestore/BlueStore.h Resolved
Comment thread src/os/bluestore/BlueStore.cc Resolved
Comment thread src/os/bluestore/BlueStore.cc Resolved
Comment thread src/os/bluestore/BlueStore.cc Resolved
Comment thread src/os/bluestore/BlueStore.cc Resolved
Comment thread src/os/bluestore/BlueStore.cc Resolved
Comment thread src/os/bluestore/BlueStore.cc Resolved
Comment thread src/os/bluestore/BlueStore.h Resolved
@ifed01

ifed01 commented Oct 3, 2023

Copy link
Copy Markdown
Contributor

"make check" error looks relevant.

Comment thread src/os/bluestore/BlueStore.cc Resolved
Comment thread src/os/bluestore/BlueStore.cc Resolved
Comment thread src/os/bluestore/BlueStore.cc Resolved
@pereman2

Copy link
Copy Markdown
Contributor Author

jenkins test api

@pereman2

Copy link
Copy Markdown
Contributor Author

jenkins test make check

Comment thread compile_commands.json Resolved
@ifed01

ifed01 commented Oct 24, 2023

Copy link
Copy Markdown
Contributor

jenkins test api

@pereman2
pereman2 force-pushed the shared-blob-to-blob branch from 98b3e3b to 36fbcc2 Compare November 6, 2023 11:45
@pereman2
pereman2 force-pushed the shared-blob-to-blob branch 3 times, most recently from df582fb to cbdab3c Compare November 27, 2023 14:27
@pereman2
pereman2 force-pushed the shared-blob-to-blob branch 2 times, most recently from 9fbae1a to 7cfb52d Compare December 14, 2023 18:48
@aclamk

aclamk commented Dec 19, 2023

Copy link
Copy Markdown
Contributor

jenkins test make check

@kamoltat

kamoltat commented Feb 2, 2024 •

Copy link
Copy Markdown
Member

@pereman2 Hi think this PR might be the culprit for some of the dead jobs

/yuriw-2024-01-31_19:20:14-rados-wip-yuri3-testing-2024-01-29-1434-distro-default-smithi/7540943/

24-02-01T01:12:46.079 INFO:tasks.ceph.osd.6.smithi099.stderr:./src/os/bluestore/BlueStore.h: 612: FAILED ceph_assert(!shared_blob)
2024-02-01T01:12:46.079 INFO:tasks.ceph.osd.6.smithi099.stderr: ceph version 19.0.0-1016-g3fb6d78c (3fb6d78cec60c8f5c9fadc9d7aff52fbb473053c) squid (dev)
2024-02-01T01:12:46.079 INFO:tasks.ceph.osd.6.smithi099.stderr: 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x118) [0x56223ac97e8a]
2024-02-01T01:12:46.079 INFO:tasks.ceph.osd.6.smithi099.stderr: 2: ceph-osd(+0x3f4041) [0x56223ac98041]
2024-02-01T01:12:46.079 INFO:tasks.ceph.osd.6.smithi099.stderr: 3: ceph-osd(+0x3d7a2a) [0x56223ac7ba2a]
2024-02-01T01:12:46.080 INFO:tasks.ceph.osd.6.smithi099.stderr: 4: (BlueStore::ExtentMap::make_range_shared_maybe_merge(BlueStore::TransContext*, boost::intrusive_ptr<BlueStore::Onode>&, unsigned long, unsigned long)+0x4f1) [0x56223b1e9311]
2024-02-01T01:12:46.080 INFO:tasks.ceph.osd.6.smithi099.stderr: 5: (BlueStore::ExtentMap::dup_esb(BlueStore*, BlueStore::TransContext*, boost::intrusive_ptr<BlueStore::Collection>&, boost::intrusive_ptr<BlueStore::Onode>&, boost::intrusive_ptr<BlueStore::Onode>&, unsigned long&, unsigned long&, unsigned long&)+0x1a1) [0x56223b1ed4c1]
2024-02-01T01:12:46.081 INFO:tasks.ceph.osd.6.smithi099.stderr: 6: (BlueStore::_do_clone_range(BlueStore::TransContext*, boost::intrusive_ptr<BlueStore::Collection>&, boost::intrusive_ptr<BlueStore::Onode>&, boost::intrusive_ptr<BlueStore::Onode>&, unsigned long, unsigned long, unsigned long)+0x1b0) [0x56223b267dd0]
2024-02-01T01:12:46.081 INFO:tasks.ceph.osd.6.smithi099.stderr: 7: (BlueStore::_clone_range(BlueStore::TransContext*, boost::intrusive_ptr<BlueStore::Collection>&, boost::intrusive_ptr<BlueStore::Onode>&, boost::intrusive_ptr<BlueStore::Onode>&, unsigned long, unsigned long, unsigned long)+0x270) [0x56223b26bd40]
2024-02-01T01:12:46.081 INFO:tasks.ceph.osd.6.smithi099.stderr: 8: (BlueStore::_txc_add_transaction(BlueStore::TransContext*, ceph::os::Transaction*)+0x1446) [0x56223b264306]
2024-02-01T01:12:46.081 INFO:tasks.ceph.osd.6.smithi099.stderr: 9: (BlueStore::queue_transactions(boost::intrusive_ptr<ObjectStore::CollectionImpl>&, std::vector<ceph::os::Transaction, std::allocator<ceph::os::Transaction> >&, boost::intrusive_ptr<TrackedOp>, ThreadPool::TPHandle*)+0x313) [0x56223b264df3]
2024-02-01T01:12:46.081 INFO:tasks.ceph.osd.6.smithi099.stderr: 10: (ECBackend::handle_sub_write(pg_shard_t, boost::intrusive_ptr<OpRequest>, ECSubWrite&, ZTracer::Trace const&)+0x9c7) [0x56223b1611b7]
2024-02-01T01:12:46.081 INFO:tasks.ceph.osd.6.smithi099.stderr: 11: (ECBackend::RMWPipeline::try_reads_to_commit()+0x3402) [0x56223b173d02]
2024-02-01T01:12:46.081 INFO:tasks.ceph.osd.6.smithi099.stderr: 12: ceph-osd(+0x8df564) [0x56223b183564]
2024-02-01T01:12:46.082 INFO:tasks.ceph.osd.6.smithi099.stderr: 13: ceph-osd(+0x8cc74a) [0x56223b17074a]
2024-02-01T01:12:46.082 INFO:tasks.ceph.osd.6.smithi099.stderr: 14: (ECBackend::complete_read_op(ECBackend::ReadOp&, RecoveryMessages*)+0x8f) [0x56223b15e6df]
2024-02-01T01:12:46.082 INFO:tasks.ceph.osd.6.smithi099.stderr: 15: (ECBackend::handle_sub_read_reply(pg_shard_t, ECSubReadReply&, RecoveryMessages*, ZTracer::Trace const&)+0xdfa) [0x56223b167aea]
2024-02-01T01:12:46.082 INFO:tasks.ceph.osd.6.smithi099.stderr: 16: (ECBackend::_handle_message(boost::intrusive_ptr<OpRequest>)+0x190) [0x56223b15d700]
2024-02-01T01:12:46.082 INFO:tasks.ceph.osd.6.smithi099.stderr: 17: (PGBackend::handle_message(boost::intrusive_ptr<OpRequest>)+0x56) [0x56223af7d776]
2024-02-01T01:12:46.082 INFO:tasks.ceph.osd.6.smithi099.stderr: 18: (PrimaryLogPG::do_request(boost::intrusive_ptr<OpRequest>&, ThreadPool::TPHandle&)+0x7ed) [0x56223aecb2fd]
2024-02-01T01:12:46.082 INFO:tasks.ceph.osd.6.smithi099.stderr: 19: (OSD::dequeue_op(boost::intrusive_ptr<PG>, boost::intrusive_ptr<OpRequest>, ThreadPool::TPHandle&)+0x197) [0x56223ae20757]
2024-02-01T01:12:46.082 INFO:tasks.ceph.osd.6.smithi099.stderr: 20: (ceph::osd::scheduler::PGOpItem::run(OSD*, OSDShard*, boost::intrusive_ptr<PG>&, ThreadPool::TPHandle&)+0x69) [0x56223b04c1c9]
2024-02-01T01:12:46.082 INFO:tasks.ceph.osd.6.smithi099.stderr: 21: (OSD::ShardedOpWQ::_process(unsigned int, ceph::heartbeat_handle_d*)+0xab3) [0x56223ae2b453]
2024-02-01T01:12:46.082 INFO:tasks.ceph.osd.6.smithi099.stderr: 22: (ShardedThreadPool::shardedthreadpool_worker(unsigned int)+0x293) [0x56223b322623]
2024-02-01T01:12:46.082 INFO:tasks.ceph.osd.6.smithi099.stderr: 23: ceph-osd(+0xa7eb84) [0x56223b322b84]
2024-02-01T01:12:46.082 INFO:tasks.ceph.osd.6.smithi099.stderr: 24: /lib/x86_64-linux-gnu/libc.so.6(+0x94b43) [0x7f055a9abb43]
2024-02-01T01:12:46.082 INFO:tasks.ceph.osd.6.smithi099.stderr: 25: /lib/x86_64-linux-gnu/libc.so.6(+0x126a00) [0x7f055aa3da00]
2024-02-01T01:12:46.083 INFO:tasks.ceph.osd.6.smithi099.stderr:2024-02-01T01:12:46.060+0000 7f0536334640 -1 ./src/os/bluestore/BlueStore.h: In function 'void BlueStore::Blob::set_shared_blob(BlueStore::SharedBlobRef)' thread 7f0536334640 time 2024-02-01T01:12:46.059364+0000
2024-02-01T01:12:46.083 INFO:tasks.ceph.osd.6.smithi099.stderr:./src/os/bluestore/BlueStore.h: 612: FAILED ceph_assert(!shared_blob)
2024-02-01T01:12:46.083 INFO:tasks.ceph.osd.6.smithi099.stderr:
2024-02-01T01:12:46.083 INFO:tasks.ceph.osd.6.smithi099.stderr: ceph version 19.0.0-1016-g3fb6d78c (3fb6d78cec60c8f5c9fadc9d7aff52fbb473053c) squid (dev)
2024-02-01T01:12:46.083 INFO:tasks.ceph.osd.6.smithi099.stderr: 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x118) [0x56223ac97e8a]
2024-02-01T01:12:46.083 INFO:tasks.ceph.osd.6.smithi099.stderr: 2: ceph-osd(+0x3f4041) [0x56223ac98041]
2024-02-01T01:12:46.083 INFO:tasks.ceph.osd.6.smithi099.stderr: 3: ceph-osd(+0x3d7a2a) [0x56223ac7ba2a]
2024-02-01T01:12:46.083 INFO:tasks.ceph.osd.6.smithi099.stderr: 4: (BlueStore::ExtentMap::make_range_shared_maybe_merge(BlueStore::TransContext*, boost::intrusive_ptr<BlueStore::Onode>&, unsigned long, unsigned long)+0x4f1) [0x56223b1e9311]
2024-02-01T01:12:46.083 INFO:tasks.ceph.osd.6.smithi099.stderr: 5: (BlueStore::ExtentMap::dup_esb(BlueStore*, BlueStore::TransContext*, boost::intrusive_ptr<BlueStore::Collection>&, boost::intrusive_ptr<BlueStore::Onode>&, boost::intrusive_ptr<BlueStore::Onode>&, unsigned long&, unsigned long&, unsigned long&)+0x1a1) [0x56223b1ed4c1]
2024-02-01T01:12:46.083 INFO:tasks.ceph.osd.6.smithi099.stderr: 6: (BlueStore::_do_clone_range(BlueStore::TransContext*, boost::intrusive_ptr<BlueStore::Collection>&, boost::intrusive_ptr<BlueStore::Onode>&, boost::intrusive_ptr<BlueStore::Onode>&, unsigned long, unsigned long, unsigned long)+0x1b0) [0x56223b267dd0]
2024-02-01T01:12:46.083 INFO:tasks.ceph.osd.6.smithi099.stderr: 7: (BlueStore::_clone_range(BlueStore::TransContext*, boost::intrusive_ptr<BlueStore::Collection>&, boost::intrusive_ptr<BlueStore::Onode>&, boost::intrusive_ptr<BlueStore::Onode>&, unsigned long, unsigned long, unsigned long)+0x270) [0x56223b26bd40]
2024-02-01T01:12:46.083 INFO:tasks.ceph.osd.6.smithi099.stderr: 8: (BlueStore::_txc_add_transaction(BlueStore::TransContext*, ceph::os::Transaction*)+0x1446) [0x56223b264306]
2024-02-01T01:12:46.083 INFO:tasks.ceph.osd.6.smithi099.stderr: 9: (BlueStore::queue_transactions(boost::intrusive_ptr<ObjectStore::CollectionImpl>&, std::vector<ceph::os::Transaction, std::allocator<ceph::os::Transaction> >&, boost::intrusive_ptr<TrackedOp>, ThreadPool::TPHandle*)+0x313) [0x56223b264df3]
2024-02-01T01:12:46.084 INFO:tasks.ceph.osd.6.smithi099.stderr: 10: (ECBackend::handle_sub_write(pg_shard_t, boost::intrusive_ptr<OpRequest>, ECSubWrite&, ZTracer::Trace const&)+0x9c7) [0x56223b1611b7]
2024-02-01T01:12:46.084 INFO:tasks.ceph.osd.6.smithi099.stderr: 11: (ECBackend::RMWPipeline::try_reads_to_commit()+0x3402) [0x56223b173d02]
2024-02-01T01:12:46.084 INFO:tasks.ceph.osd.6.smithi099.stderr: 12: ceph-osd(+0x8df564) [0x56223b183564]
2024-02-01T01:12:46.084 INFO:tasks.ceph.osd.6.smithi099.stderr: 13: ceph-osd(+0x8cc74a) [0x56223b17074a]
2024-02-01T01:12:46.084 INFO:tasks.ceph.osd.6.smithi099.stderr: 14: (ECBackend::complete_read_op(ECBackend::ReadOp&, RecoveryMessages*)+0x8f) [0x56223b15e6df]
2024-02-01T01:12:46.084 INFO:tasks.ceph.osd.6.smithi099.stderr: 15: (ECBackend::handle_sub_read_reply(pg_shard_t, ECSubReadReply&, RecoveryMessages*, ZTracer::Trace const&)+0xdfa) [0x56223b167aea]
2024-02-01T01:12:46.084 INFO:tasks.ceph.osd.6.smithi099.stderr: 16: (ECBackend::_handle_message(boost::intrusive_ptr<OpRequest>)+0x190) [0x56223b15d700]
2024-02-01T01:12:46.084 INFO:tasks.ceph.osd.6.smithi099.stderr: 17: (PGBackend::handle_message(boost::intrusive_ptr<OpRequest>)+0x56) [0x56223af7d776]
2024-02-01T01:12:46.084 INFO:tasks.ceph.osd.6.smithi099.stderr: 18: (PrimaryLogPG::do_request(boost::intrusive_ptr<OpRequest>&, ThreadPool::TPHandle&)+0x7ed) [0x56223aecb2fd]
### 

@kamoltat kamoltat closed this Feb 2, 2024
@kamoltat kamoltat reopened this Feb 2, 2024
@kamoltat

kamoltat commented Feb 7, 2024

Copy link
Copy Markdown
Member

@pereman2 can you let us know if the failed job I pasted in the comment above is related, so I can drop and retest Thanks!

@pereman2

pereman2 commented Feb 7, 2024

Copy link
Copy Markdown
Contributor Author

@kamoltat We are aware of this issue as it is related, we encountered it on a different teuthology job. We are working on it right now.

@kamoltat

kamoltat commented Feb 7, 2024

Copy link
Copy Markdown
Member

@kamoltat We are aware of this issue as it is related, we encountered it on a different teuthology job. We are working on it right now.

Thank you for confirming!

Pere Diaz Bou and others added 16 commits February 8, 2024 12:16
Instead of creating a SharedBlob for each Blob instance, we just move
necesary fields like Collection to Blob and create SharedBlob only when
necessary.

Signed-off-by: Pere Diaz Bou <[email protected]>
split_cache requires moving from one collection to another in a
sharedblob. Therefore, with the new refactor we need collection inside
blob to be moved too.

Signed-off-by: Pere Diaz Bou <[email protected]>
Use new_blob and set collection in Blob in bluestore unittests as per
latest changes

Signed-off-by: Pere Diaz Bou <[email protected]>
Instead of setting blob collection to the same as shared blob, we ensure
we were in the same collection instead.

Signed-off-by: Pere Diaz Bou <[email protected]>
Collection is a member of Blob after previous changes, making it necessary for rehome_blob
to move both Blob and SharedBlob

Signed-off-by: Pere Diaz Bou <[email protected]>
Set collection on blob creation instead of setting it manually after
creation

Signed-off-by: Pere Diaz Bou <[email protected]>
dummy onodes don't have a collection, consequentially, we need to create
a blob without a collection.

Signed-off-by: Pere Diaz Bou <[email protected]>
introduce const and non const accessors:
  const SharedblobRef& get_shared_blob
  SharedblobRef& get_dirty_shared_blob

Signed-off-by: Pere Diaz Bou <[email protected]>
This will ensure deleting and then cloning the same blob works.

Signed-off-by: Pere Diaz Bou <[email protected]>
set_shared_blob requires shared_blob to be a nullptr to ensure
it's correct operation.

Signed-off-by: Pere Diaz Bou <[email protected]>
private shared_blob member access needed to be changed

Signed-off-by: Pere Diaz Bou <[email protected]>
@pereman2
pereman2 force-pushed the shared-blob-to-blob branch from 8050917 to de6840c Compare February 8, 2024 11:17
@pereman2

pereman2 commented Feb 8, 2024

Copy link
Copy Markdown
Contributor Author

jenkins test api

@aclamk
aclamk merged commit 6de5b2b into ceph:main Feb 16, 2024
@amathuria

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants