Project

General

Profile

Actions

Bug #6722

closed

osd/PGLog.cc: 368: FAILED assert(p->version > newhead)

Added by Samuel Just over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
% Done:

0%

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

Description

2013-11-05 17:30:54.916068 7f9f42a66700 1 osd/PGLog.cc: In function 'void PGLog::rewind_divergent_log(ObjectStore::Transaction&, eversion_t, pg_info_t&, std::list<hobject_t>&, bool&, bool&)' thread 7f9f42a66700 time 2013-11-05 17:30:54.913958
osd/PGLog.cc: 368: FAILED assert(p
>version > newhead)

ceph version 0.72-rc1-30-gd7202fd (d7202fd672f00a1e6170ca0797f3e985b86b9c66)
1: (PGLog::rewind_divergent_log(ObjectStore::Transaction&, eversion_t, pg_info_t&, std::list&lt;hobject_t, std::allocator&lt;hobject_t&gt; >&, bool&, bool&)+0x3fc) [0x7d480c]
2: (PGLog::merge_log(ObjectStore::Transaction&, pg_info_t&, pg_log_t&, int, pg_info_t&, std::list&lt;hobject_t, std::allocator&lt;hobject_t&gt; >&, bool&, bool&)+0x16e1) [0x7d5f51]
3: (PG::merge_log(ObjectStore::Transaction&, pg_info_t&, pg_log_t&, int)+0x51) [0x762ec1]
4: (PG::RecoveryState::Stray::react(PG::MLogRec const&)+0x136) [0x79d1e6]
5: (boost::statechart::simple_state&lt;PG::RecoveryState::Stray, PG::RecoveryState::Started, boost::mpl::list&lt;mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na&gt;, (boost::st
atechart::history_mode)0>::react_impl(boost::statechart::event_base const&, void const*)+0x182) [0x7c8312]
6: (boost::statechart::state_machine&lt;PG::RecoveryState::RecoveryMachine, PG::RecoveryState::Initial, std::allocator&lt;void&gt;, boost::statechart::null_exception_translator>::send_event(boost::statechart::event_base const&)+0x5b) [0x7ad63b]
7: (boost::statechart::state_machine&lt;PG::RecoveryState::RecoveryMachine, PG::RecoveryState::Initial, std::allocator&lt;void&gt;, boost::statechart::null_exception_translator>::process_event(boost::statechart::event_base const&)+0x11) [0x7ad991]
8: (PG::handle_peering_event(std::tr1::shared_ptr&lt;PG::CephPeeringEvt&gt;, PG::RecoveryCtx*)+0x303) [0x7694e3]
9: (OSD::process_peering_events(std::list&lt;PG*, std::allocator&lt;PG*&gt; > const&, ThreadPool::TPHandle&)+0x264) [0x6211d4]
10: (OSD::PeeringWQ::_process(std::list&lt;PG*, std::allocator&lt;PG*&gt; > const&, ThreadPool::TPHandle&)+0x12) [0x668132]
11: (ThreadPool::worker(ThreadPool::WorkThread*)+0x4e6) [0x9410a6]
12: (ThreadPool::WorkThread::entry()+0x10) [0x942eb0]
13: (()+0x7e9a) [0x7f9f57b06e9a]
14: (clone()+0x6d) [0x7f9f55ebfccd]
NOTE: a copy of the executable, or `objdump -rdS &lt;executable&gt;` is needed to interpret this.

This is actually pretty simple. A few lines up, we need to account for the possibility that the log does not contain an entry at log.head.

Actions #1

Updated by Samuel Just over 10 years ago

  • Status changed from New to 7

Fix in wip-6719

Actions #2

Updated by Samuel Just over 10 years ago

  • Status changed from 7 to Resolved
Actions

Also available in: Atom PDF