Skip to content

octopus: osd/PGLog.cc: Trim duplicates by number of entries#46253

Merged
yuriw merged 2 commits intoceph:octopusfrom
rzarzynski:wip-45529-octopus
Jun 1, 2022
Merged

octopus: osd/PGLog.cc: Trim duplicates by number of entries#46253
yuriw merged 2 commits intoceph:octopusfrom
rzarzynski:wip-45529-octopus

Conversation

@rzarzynski
Copy link
Contributor

This is NOT a clean backport of #45529. Please review.

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

Adding duplicate entries trimming to trim-pg-log opertion, we will use the exist
PGLog trim function to find out the set of entries\dup entries that we suppose to
trim. to use it we need to build the PGLog from disk.

Fixed: https://tracker.ceph.com/issues/53729
Signed-off-by: Nitzan Mordechai <nmordec@redhat.com>
(cherry picked from commit 9fb7ec6)

 Conflicts:
	src/osd/PGLog.h -- octopus does not have the commit
			   8777980
			   which cleans the `std` namespace depedency
			   in headers.
	src/tools/ceph_objectstore_tool.cc -- octopus lacks the commit
			   7d73fa6
			   which puts the buffer's error hierarchy on
			   `system_error`.
PGLog needs to trim duplicates by the number of entries rather than the versions. That way, we prevent unbounded duplicate growth.

Fixed: https://tracker.ceph.com/issues/53729
Signed-off-by: Nitzan Mordechai <nmordec@redhat.com>
(cherry picked from commit 0d253bc)
@rzarzynski rzarzynski added this to the octopus milestone May 12, 2022
@ljflores
Copy link
Member

Rados suite results:

http://pulpito.front.sepia.ceph.com/?branch=wip-yuri5-testing-2022-05-13-1402-octopus

Failures, unrelated:
1. https://tracker.ceph.com/issues/55723
2. https://tracker.ceph.com/issues/55774
3. https://tracker.ceph.com/issues/55787 ---> opened a new Tracker for this; does not appear related to the PRs that were tested.

Details:
1. octopus: dashboard failures due to timed-out or failed connections - Ceph - Mgr - Dashboard
2. octopus: prometheus, and selftest failures due to timed-out or failed connections - Ceph - Mgr
3. mon/crush_ops.sh: Error ENOENT: item osd.7 does not exist - Ceph - RADOS

@yuriw yuriw merged commit 30e30dd into ceph:octopus Jun 1, 2022
@pponnuvel pponnuvel mentioned this pull request Jun 16, 2022
14 tasks
yuriw added a commit that referenced this pull request Jul 11, 2022
octopus: revert of #46253, add tools: ceph-objectstore-tool is able to trim solely pg log dups' entries

Reviewed-by: Neha Ojha <nojha@redhat.com>
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