assert(objiter->second->version > last_divergent_update) when testing pull out disk and insert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi
    I had met an assert problem like bug16279(http://tracker.ceph.com/issues/16279) when testing pull out disk and insert, ceph version 10.2.5
assert(objiter->second->version > last_divergent_update)

according to osd logI think this maybe due to (log.head != *log.log.rbegin.version.version) when some abnormal condition happened,such as power off ,pull out disk and insert.

In below situation, merge_log would push 2341034 into divergent list;and divergent has only one node;then lead to assert(objiter->second->version > last_divergent_update).

olog  ----------------   (00, 2341034)  olog.head = 2341034

log   ----------------   (00, 2341034)  log.head = 2341033

 

I see osd load_pgs code,in function PGLog::read_log() , code like this:
 .....
 for (p->seek_to_first(); p->valid() ; p->next()) {

.....

    log.log.push_back(e);

    log.head = e.version;  // every pg log node

  }

.....

 log.head = info.last_update;

 

two doubt:

first : why set (log.head = info.last_update) after all pg log node processed(every node has updated log.head = e.version)?

second: Whether it can occur that info.last_update is less than *log.log.rbegin.version or not and what scene happens?

      

Looking forward to your reply!thks

 

-------------------------------------------------------------------------------------------------------------------------------------
本邮件及其附件含有新华三技术有限公司的保密信息,仅限于发送给上面地址中列出
的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、
或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本
邮件!
This e-mail and its attachments contain confidential information from New H3C, which is
intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
by phone or email immediately and delete it!
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux