Skip to content

PrimaryLogPG: Keep soid before erase entry#57545

Merged
ljflores merged 1 commit intoceph:mainfrom
NitzanMordhai:wip-nitzan-local-recovery-valgrind-error
Jul 30, 2024
Merged

PrimaryLogPG: Keep soid before erase entry#57545
ljflores merged 1 commit intoceph:mainfrom
NitzanMordhai:wip-nitzan-local-recovery-valgrind-error

Conversation

@NitzanMordhai
Copy link
Contributor

@NitzanMordhai NitzanMordhai commented May 19, 2024

valgrind errors show when we are erasing entry and then trying to use it. we need to keep the soid before the erase happen.

Fixes: https://tracker.ceph.com/issues/64942

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

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
  • jenkins test rook e2e

@NitzanMordhai NitzanMordhai requested a review from a team as a code owner May 19, 2024 08:02
@github-actions github-actions bot added the core label May 19, 2024
auto soid = unreadable_object_entry->first;
waiting_for_unreadable_object.erase(unreadable_object_entry);
finish_unreadable_object(unreadable_object_entry->first);
finish_unreadable_object(soid);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about we just move the call to finish_unreadable_object to before erasing the iterator? That saves us a copy and finish_unreadable_object doesn't seem like it cares.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, will do that

valgrind errors show when we are erasing entry and then trying
to use it. we need to keep the soid before the erase happen.

Fixes: https://tracker.ceph.com/issues/64942
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
@NitzanMordhai NitzanMordhai force-pushed the wip-nitzan-local-recovery-valgrind-error branch from ecdebfd to f7bc4e4 Compare June 19, 2024 04:26
@NitzanMordhai NitzanMordhai requested a review from athanatos June 19, 2024 04:27
@NitzanMordhai
Copy link
Contributor Author

@yuriw
Copy link
Contributor

yuriw commented Jul 30, 2024

@NitzanMordhai @athanatos This is ready for merge as soon as comments are resolved
ref: https://tracker.ceph.com/issues/67027

@ljflores ljflores dismissed athanatos’s stale review July 30, 2024 15:46

This was addressed.

@ljflores ljflores merged commit e991a82 into ceph:main Jul 30, 2024
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.

6 participants