Skip to content

luminous: osd: PrimaryLogPG: fix potential pg-log overtrimming#24308

Merged
yuriw merged 1 commit intoceph:luminousfrom
neha-ojha:wip-36239-luminous
Oct 1, 2018
Merged

luminous: osd: PrimaryLogPG: fix potential pg-log overtrimming#24308
yuriw merged 1 commit intoceph:luminousfrom
neha-ojha:wip-36239-luminous

Conversation

@neha-ojha
Copy link
Copy Markdown
Member

@neha-ojha neha-ojha commented Sep 27, 2018

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


This is a backport of #23317

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

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

In ceph#21580 I set a trap to catch some wired
and random segmentfaults and in a recent QA run I was able to observe it was
successfully triggered by one of the test case, see:

```
http://qa-proxy.ceph.com/teuthology/xxg-2018-07-30_05:25:06-rados-wip-hb-peers-distro-basic-smithi/2837916/teuthology.log
```

The root cause is that there might be holes on log versions, thus the
approx_size() method should (almost) always overestimate the actual number of log entries.
As a result, we might be at the risk of overtrimming log entries.

ceph#18338 reveals a probably easier way
to fix the above problem but unfortunately it also can cause big performance regression
and hence comes this pr..

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 3654d56)

Conflicts:
	src/osd/PrimaryLogPG.cc: trivial resolution
@yuriw
Copy link
Copy Markdown
Contributor

yuriw commented Sep 28, 2018

@yuriw yuriw merged commit 5b56b60 into ceph:luminous Oct 1, 2018
@smithfarm smithfarm changed the title luminous: osd/PrimaryLogPG: fix potential pg-log overtrimming luminous: osd: PrimaryLogPG: fix potential pg-log overtrimming Oct 26, 2018
yuriw added a commit to yuriw/ceph that referenced this pull request Nov 5, 2018
Fixes: ceph#24308
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
yuriw added a commit to yuriw/ceph that referenced this pull request Nov 5, 2018
Fixes: ceph#24308
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
yuriw added a commit to yuriw/ceph that referenced this pull request Nov 5, 2018
Fixes: ceph#24308
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
yuriw added a commit to yuriw/ceph that referenced this pull request Nov 6, 2018
Fixes: ceph#24308
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
yuriw added a commit to yuriw/ceph that referenced this pull request Nov 6, 2018
Fixes: ceph#24308
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
yuriw added a commit to yuriw/ceph that referenced this pull request Nov 6, 2018
Fixes: ceph#24308
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
yuriw added a commit to yuriw/ceph that referenced this pull request Nov 6, 2018
Fixes: ceph#24308
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
neha-ojha pushed a commit to neha-ojha/ceph that referenced this pull request Dec 21, 2018
Fixes: ceph#24308
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
(cherry picked from commit 867940e)
neha-ojha pushed a commit to ceph/ceph-ci that referenced this pull request Dec 21, 2018
Fixes: ceph/ceph#24308
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
(cherry picked from commit 867940e08bd829bbe16cb23ae4337b56e00ff9a6)
neha-ojha pushed a commit to ceph/ceph-ci that referenced this pull request Jan 3, 2019
Fixes: ceph/ceph#24308
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
(cherry picked from commit 867940e08bd829bbe16cb23ae4337b56e00ff9a6)
neha-ojha pushed a commit to neha-ojha/ceph that referenced this pull request Jan 4, 2019
Fixes: ceph#24308
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
(cherry picked from commit 867940e)
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.

4 participants