Skip to content

os/bluestore: Revival of _deferred_replay fix - #62412

Closed
aclamk wants to merge 7 commits into
ceph:mainfrom
aclamk:wip-aclamk-more-deferred-overwrite-fix-redo
Closed

aclamk wants to merge 7 commits into
ceph:mainfrom
aclamk:wip-aclamk-more-deferred-overwrite-fix-redo

Conversation

@aclamk

@aclamk aclamk commented Mar 20, 2025 •

Copy link
Copy Markdown
Contributor

This PR is a revival of #60753 .

Fixes known problems with deferred write replay.
Based on unittest for deferred writes #60732
Fixes: https://tracker.ceph.com/issues/68060

Includes observation from https://tracker.ceph.com/issues/70581

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

@aclamk
aclamk requested a review from a team as a code owner March 20, 2025 12:00
@aclamk

aclamk commented Mar 21, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label May 20, 2025
@github-actions

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

Added debug hooks for:
- init_alloc
- deferred start/stop/operation

This created framework for specific unit tests.
These functions are as name suggests debug level, only for unittests.

Signed-off-by: Adam Kupczyk <[email protected]>
Two possible cases of deferred write related corruption are replicated.
1. The case when L entries remain.
2. The case when deferred overwrites newly created BlueFS files

Provides unittest for:
https://tracker.ceph.com/issues/68060

Signed-off-by: Adam Kupczyk <[email protected]>
Modify _deferred_replay to execute it directly, without involving
BlueStore state machine.
In result, kv-sync thread is not necessary.
RocksDB L entries (deferred writes) are removed directly.

Fixes: https://tracker.ceph.com/issues/68060,
  part responsible for stale L entries.

Signed-off-by: Adam Kupczyk <[email protected]>
Modify _deferred_replay to separate:
- applying IO to the disk
- DB transaction to remove keys

Changed _open_db_and_around. It now calls _deferred_replay.
Adapted callers, including fsck.

Fixed: https://tracker.ceph.com/issues/68060, original report.

Signed-off-by: Adam Kupczyk <[email protected]>
Add code to print times; this is for make check arm64.

Signed-off-by: Adam Kupczyk <[email protected]>
@aclamk
aclamk force-pushed the wip-aclamk-more-deferred-overwrite-fix-redo branch from cd16711 to 87d83c2 Compare December 4, 2025 15:16
@github-actions

github-actions Bot commented Feb 2, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Feb 2, 2026
@github-actions

github-actions Bot commented Mar 4, 2026

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

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.

1 participant