Project

General

Profile

Actions

Bug #78658

closed
LS AA

rados/thrash-erasure-code-isa/ec_optimizations on - The WatchDog barked due to Daemon ceph.osd.15 has failed - BlueStore::queue_transactions/ _txc_add_transaction BlueStore.cc Line 16539

Bug #78658: rados/thrash-erasure-code-isa/ec_optimizations on - The WatchDog barked due to Daemon ceph.osd.15 has failed - BlueStore::queue_transactions/ _txc_add_transaction BlueStore.cc Line 16539

Added by Lee Sanders 4 months ago. Updated 2 months ago.

Status:
Duplicate
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

https://pulpito.ceph.com/lflores-2026-07-17_23:28:16-rados-wip-lflores-testing-3-2026-07-17-1417-distro-default-trial/374634/

/a/lflores-2026-07-17_23:28:16-rados-wip-lflores-testing-3-2026-07-17-1417-distro-default-trial/374634/

2026-07-18T01:14:01.244 INFO:tasks.ceph.osd.15.trial188.stderr:2026-07-18T01:14:01.241+0000 7f53f6156640 -1 /ceph/rpmbuild/BUILD/ceph-21.3.0-1149-g14f2714d/src/os/bluestore/BlueStore.cc: In function 'void BlueStore::_txc_add_transaction(TransContext*, ObjectStore::Transaction*)' thread 7f53f6156640 time 2026-07-18T01:14:01.240446+0000
2026-07-18T01:14:01.244 INFO:tasks.ceph.osd.15.trial188.stderr:/ceph/rpmbuild/BUILD/ceph-21.3.0-1149-g14f2714d/src/os/bluestore/BlueStore.cc: 16539: ceph_abort_msg("unexpected error")
2026-07-18T01:14:01.244 INFO:tasks.ceph.osd.15.trial188.stderr:
2026-07-18T01:14:01.244 INFO:tasks.ceph.osd.15.trial188.stderr: ceph version 21.3.0-1149-g14f2714d (14f2714dc0d2f6612ad3820427d10ba37bd9862f) umbrella (dev - RelWithDebInfo)
2026-07-18T01:14:01.244 INFO:tasks.ceph.osd.15.trial188.stderr: 1: ceph-osd() [0x88bdb6]
2026-07-18T01:14:01.244 INFO:tasks.ceph.osd.15.trial188.stderr: 2: (ceph::__ceph_abort(char const*, int, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0xc4) [0x792a90]
2026-07-18T01:14:01.244 INFO:tasks.ceph.osd.15.trial188.stderr: 3: ceph-osd() [0x76d166]
2026-07-18T01:14:01.244 INFO:tasks.ceph.osd.15.trial188.stderr: 4: (BlueStore::queue_transactions(boost::intrusive_ptr<ObjectStore::CollectionImpl>&, std::vector<ceph::os::Transaction, std::allocator<ceph::os::Transaction> >&, boost::intrusive_ptr<TrackedOp>, ThreadPool::TPHandle*)+0x2f0) [0xe11380]
2026-07-18T01:14:01.244 INFO:tasks.ceph.osd.15.trial188.stderr: 5: (ECBackend::handle_sub_write(pg_shard_t, boost::intrusive_ptr<OpRequest>, ECSubWrite&, ZTracer::Trace const&, ECListener&)+0xa2c) [0xced8ac]
2026-07-18T01:14:01.244 INFO:tasks.ceph.osd.15.trial188.stderr: 6: (ECBackend::_handle_message(boost::intrusive_ptr<OpRequest>)+0x3b6) [0xcf5d16]
2026-07-18T01:14:01.244 INFO:tasks.ceph.osd.15.trial188.stderr: 7: ceph-osd() [0xb03006]
2026-07-18T01:14:01.245 INFO:tasks.ceph.osd.15.trial188.stderr: 8: (PGBackend::handle_message(boost::intrusive_ptr<OpRequest>)+0x4d) [0xb21d0d]
2026-07-18T01:14:01.245 INFO:tasks.ceph.osd.15.trial188.stderr: 9: (PrimaryLogPG::do_request(boost::intrusive_ptr<OpRequest>&, ThreadPool::TPHandle&)+0x6d9) [0xa3d8d9]
2026-07-18T01:14:01.245 INFO:tasks.ceph.osd.15.trial188.stderr: 10: (OSD::dequeue_op(boost::intrusive_ptr<PG>, boost::intrusive_ptr<OpRequest>, ThreadPool::TPHandle&)+0x1af) [0x98302f]
2026-07-18T01:14:01.245 INFO:tasks.ceph.osd.15.trial188.stderr: 11: (ceph::osd::scheduler::PGOpItem::run(OSD*, OSDShard*, boost::intrusive_ptr<PG>&, ThreadPool::TPHandle&)+0x69) [0xc02789]
2026-07-18T01:14:01.245 INFO:tasks.ceph.osd.15.trial188.stderr: 12: (OSD::ShardedOpWQ::_process(unsigned int, unsigned int, ceph::heartbeat_handle_d*)+0x8fa) [0x9ab05a]
2026-07-18T01:14:01.245 INFO:tasks.ceph.osd.15.trial188.stderr: 13: (ShardedThreadPool::shardedthreadpool_worker(unsigned int, unsigned int)+0x32d) [0xf30efd]
2026-07-18T01:14:01.245 INFO:tasks.ceph.osd.15.trial188.stderr: 14: ceph-osd() [0xf317b7]
2026-07-18T01:14:01.245 INFO:tasks.ceph.osd.15.trial188.stderr: 15: /lib64/libc.so.6(+0x8b3f9) [0x7f5410c8b3f9]
2026-07-18T01:14:01.245 INFO:tasks.ceph.osd.15.trial188.stderr: 16: /lib64/libc.so.6(+0x1105d0) [0x7f5410d105d0]
2026-07-18T01:14:01.245 INFO:tasks.ceph.osd.15.trial188.stderr:
2026-07-18T01:14:01.245 INFO:tasks.ceph.osd.15.trial188.stderr:*** Caught signal (Aborted) **
2026-07-18T01:14:01.245 INFO:tasks.ceph.osd.15.trial188.stderr: in thread 7f53f6156640 thread_name:tp_osd_tp
2026-07-18T01:14:01.246 INFO:tasks.ceph.osd.15.trial188.stderr: ceph version 21.3.0-1149-g14f2714d (14f2714dc0d2f6612ad3820427d10ba37bd9862f) umbrella (dev - RelWithDebInfo)
2026-07-18T01:14:01.246 INFO:tasks.ceph.osd.15.trial188.stderr: 1: /lib64/libc.so.6(+0x3fc60) [0x7f5410c3fc60]
2026-07-18T01:14:01.246 INFO:tasks.ceph.osd.15.trial188.stderr: 2: /lib64/libc.so.6(+0x8d21c) [0x7f5410c8d21c]
2026-07-18T01:14:01.246 INFO:tasks.ceph.osd.15.trial188.stderr: 3: raise()
2026-07-18T01:14:01.246 INFO:tasks.ceph.osd.15.trial188.stderr: 4: abort()
2026-07-18T01:14:01.247 INFO:tasks.ceph.osd.15.trial188.stderr: 5: (ceph::__ceph_abort(char const*, int, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x17c) [0x792b48]
2026-07-18T01:14:01.247 INFO:tasks.ceph.osd.15.trial188.stderr: 6: ceph-osd() [0x76d166]
2026-07-18T01:14:01.247 INFO:tasks.ceph.osd.15.trial188.stderr: 7: (BlueStore::queue_transactions(boost::intrusive_ptr<ObjectStore::CollectionImpl>&, std::vector<ceph::os::Transaction, std::allocator<ceph::os::Transaction> >&, boost::intrusive_ptr<TrackedOp>, ThreadPool::TPHandle*)+0x2f0) [0xe11380]
2026-07-18T01:14:01.247 INFO:tasks.ceph.osd.15.trial188.stderr: 8: (ECBackend::handle_sub_write(pg_shard_t, boost::intrusive_ptr<OpRequest>, ECSubWrite&, ZTracer::Trace const&, ECListener&)+0xa2c) [0xced8ac]
2026-07-18T01:14:01.247 INFO:tasks.ceph.osd.15.trial188.stderr: 9: (ECBackend::_handle_message(boost::intrusive_ptr<OpRequest>)+0x3b6) [0xcf5d16]
2026-07-18T01:14:01.247 INFO:tasks.ceph.osd.15.trial188.stderr: 10: ceph-osd() [0xb03006]
2026-07-18T01:14:01.247 INFO:tasks.ceph.osd.15.trial188.stderr: 11: (PGBackend::handle_message(boost::intrusive_ptr<OpRequest>)+0x4d) [0xb21d0d]
2026-07-18T01:14:01.247 INFO:tasks.ceph.osd.15.trial188.stderr: 12: (PrimaryLogPG::do_request(boost::intrusive_ptr<OpRequest>&, ThreadPool::TPHandle&)+0x6d9) [0xa3d8d9]
2026-07-18T01:14:01.247 INFO:tasks.ceph.osd.15.trial188.stderr: 13: (OSD::dequeue_op(boost::intrusive_ptr<PG>, boost::intrusive_ptr<OpRequest>, ThreadPool::TPHandle&)+0x1af) [0x98302f]
2026-07-18T01:14:01.247 INFO:tasks.ceph.osd.15.trial188.stderr: 14: (ceph::osd::scheduler::PGOpItem::run(OSD*, OSDShard*, boost::intrusive_ptr<PG>&, ThreadPool::TPHandle&)+0x69) [0xc02789]
2026-07-18T01:14:01.247 INFO:tasks.ceph.osd.15.trial188.stderr: 15: (OSD::ShardedOpWQ::_process(unsigned int, unsigned int, ceph::heartbeat_handle_d*)+0x8fa) [0x9ab05a]
2026-07-18T01:14:01.247 INFO:tasks.ceph.osd.15.trial188.stderr: 16: (ShardedThreadPool::shardedthreadpool_worker(unsigned int, unsigned int)+0x32d) [0xf30efd]
2026-07-18T01:14:01.248 INFO:tasks.ceph.osd.15.trial188.stderr: 17: ceph-osd() [0xf317b7]
2026-07-18T01:14:01.248 INFO:tasks.ceph.osd.15.trial188.stderr: 18: /lib64/libc.so.6(+0x8b3f9) [0x7f5410c8b3f9]
2026-07-18T01:14:01.248 INFO:tasks.ceph.osd.15.trial188.stderr: 19: /lib64/libc.so.6(+0x1105d0) [0x7f5410d105d0]
2026-07-18T01:14:01.248 INFO:tasks.ceph.osd.15.trial188.stderr:2026-07-18T01:14:01.242+0000 7f53f6156640 -1 *** Caught signal (Aborted) **
2026-07-18T01:14:01.248 INFO:tasks.ceph.osd.15.trial188.stderr: in thread 7f53f6156640 thread_name:tp_osd_tp
2026-07-18T01:14:01.248 INFO:tasks.ceph.osd.15.trial188.stderr:

This test as ec_optimizations enabled

2026-07-18T00:43:15.285 INFO:teuthology.task.internal:Found packages for ceph version 21.3.0-1149.g14f2714d

rados/thrash-erasure-code-isa/{arch/x86_64 ceph clusters/{fixed-4} ec_optimizations/ec_optimizations_on mon_election/connectivity msgr-failures/osd-dispatch-delay objectstore/{bluestore/{alloc$/{btree} base mem$/{low} onode-segment$/{512K-onoff} write$/{v1/{compr$/{yes$/{zlib}} v1}}}} rados recovery-overrides/{more-active-recovery} supported-random-distro/{centos_9.stream} thrashers/careful_host thrashosds-health workloads/ec-rados-plugin=isa-k=8-m=6-technique=cauchy}


Files

LS Updated by Lee Sanders 4 months ago Actions #1

Please see the attached AI generated report using Bob of the failure.

Alex A has looked at the failure (since this was part of a QA run) and confirmed this appears to be a new problem and not a regression caused by the PRs in the QA run:

https://tracker.ceph.com/issues/77104

LF Updated by Laura Flores 4 months ago Actions #2

  • Description updated (diff)

LF Updated by Laura Flores 4 months ago Actions #3

  • Status changed from New to Closed

Closing as this is a regression from unmerged code. Let's reopen if it's introduced to main.

LS Updated by Lee Sanders 4 months ago ยท Edited Actions #4

  • Status changed from Closed to New

@Laura Flores fyi, @Alex Ainscow thinks this is a real problem unrelated to the changes that were being tested in the QA run, so re-opening because the belief is this is a new problem that requires investigation

RZ Updated by Radoslaw Zarzynski 4 months ago Actions #5

The abort is about misconstructed transaction detected by BlueStore. Lucckily, the logs should offer pretty verbose dump:

    if (r < 0) {                                                                                                                                                                                             
      derr << __func__ << " error " << cpp_strerror(r)                                                                                                                                                       
           << " not handled on operation " << op->op                                                                                                                                                         
           << " (op " << pos << ", counting from 0)" << dendl;                                                                                                                                               
      _dump_transaction<0>(cct, t);                                                                                                                                                                          
      if (!g_conf().get_val<bool>("objectstore_debug_throw_on_failed_txc")) {                                                                                                                                
        ceph_abort_msg("unexpected error");                                                                                                                                                                  
      } else {                                                                                                                                                                                               
        txc->osr->undo_queue(txc);                                                                                                                                                                           
        delete txc;                                                                                                                                                                                          
        throw r;                                                                                                                                                                                             
      }                                                                                                                                                                                                      
    } 

LF Updated by Laura Flores 4 months ago Actions #6

ACK bump up

LF Updated by Laura Flores 4 months ago Actions #7

@Alex Ainscow do you know where this bug might have originated?

RZ Updated by Radoslaw Zarzynski 4 months ago Actions #8

Bump up.

LF Updated by Laura Flores 4 months ago Actions #9

Bump up

RZ Updated by Radoslaw Zarzynski 3 months ago Actions #10

Observing for reoccurrence.

AA Updated by Alex Ainscow 3 months ago Actions #11

  • Assignee set to Alex Ainscow

AA Updated by Alex Ainscow 2 months ago Actions #12

What the log shows :
- BlueStore returns ENOENT, a setattr "_" on 1#3:45cfbf7e:::trial18849837-46:95#. That's a clone on shard 1 of pg 3.22.
- The write is snap-trim 919'89 modify of that clone, which drops snap 0x93 from its snaps.

How shard 1 ended up without the clone:
1. In parent pg 3.2, shard 1 on osd.15 held a divergent snap-trim entry 904'89 modify ...:95. _merge_object_divergent_entries logged "cannot roll back, removing and adding to missing", which deleted the clone and left the log empty at (823'88,823'88] with m=1.
2. The PG then split into 3.22 before recovery finished. The child inherited the empty log and the missing set, but last_complete stayed equal to last_update.
3. At the primary, osd.12, GetMissing took the identical-log fast path. Its stats show shard 15(1) objects 1 missing 0 and degraded 0, while osd.15 still reported m=1.
4. The primary's should_send_op returned true, so it sent a real transaction for an object shard 1 didn't have. BlueStore hit ENOENT and aborted.

The fix: 00fb37d3775 osd/PGLog: lower last_complete in reset_complete_to on an empty log, merged to main via PR #71525 on 2026-09-10. The test is in PR #71526 (dfaae86e892). Its commit message describes this crash.

This is a duplicate of #68649.

AA Updated by Alex Ainscow 2 months ago Actions #13

  • Status changed from New to Duplicate
Actions

Also available in: PDF Atom