New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mimic: osd/PrimaryLogPG: fix potential pg-log overtrimming #24309

merged 1 commit into from Oct 6, 2018


None yet
5 participants
Copy link

neha-ojha commented Sep 27, 2018

This is a backport of #23317

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug
osd/PrimaryLogPG: fix potential pg-log overtrimming
In #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:


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.

#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 <>
(cherry picked from commit 3654d56)

	src/osd/ trivial resolution

@neha-ojha neha-ojha added the needs-qa label Sep 28, 2018

@tchaikov tchaikov added this to the mimic milestone Sep 28, 2018


This comment has been minimized.

Copy link

yuriw commented Oct 2, 2018


This comment has been minimized.

Copy link

yuriw commented Oct 4, 2018

@yuriw yuriw merged commit 072f126 into ceph:mimic Oct 6, 2018

4 checks passed

Docs: build check OK - docs built
Signed-off-by all commits in this PR are signed
Unmodified Submodules submodules for project are unmodified
make check make check succeeded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment