Hi:
according to osd log,I 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 234’1034 into divergent list;and divergent has only one node;then lead to assert(objiter->second->version > last_divergent_update).
olog ---------------- (0’0, 234’1034)
olog.head = 234’1034
log ---------------- (0’0, 234’1034)
log.head = 234’1033
I see osd load_pgs code,in function PGLog::read_log() , code like this:
.....
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