Skip to content

os/bluestore: Disable compaction then no-column-b is storing allocations to bluefs file - #43645

Merged
liewegas merged 1 commit into
ceph:masterfrom
aclamk:wip-compaction-and-allocation-fix-52399
Oct 28, 2021
Merged

liewegas merged 1 commit into
ceph:masterfrom
aclamk:wip-compaction-and-allocation-fix-52399

Conversation

@aclamk

@aclamk aclamk commented Oct 25, 2021

Copy link
Copy Markdown
Contributor

During BlueStore umount we store current allocation state to disk, in form of bluefs file.
If RocksDB was performing compaction during capture of allocator state, it could cause corruption.
Solution is to delete db (stop RocksDB) before state capture.

Fixes: https://tracker.ceph.com/issues/52399
Signed-off-by: Adam Kupczyk [email protected]

Checklist

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

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

…ons to bluefs file

During BlueStore umount we store current allocation state to disk, in form of bluefs file.
If RocksDB was performing compaction during capture of allocator state, it could cause corruption.
Solution is to delete db (stop RocksDB) before state capture.

Fixes: https://tracker.ceph.com/issues/52399
Signed-off-by: Adam Kupczyk <[email protected]>
@aclamk

aclamk commented Oct 25, 2021

Copy link
Copy Markdown
Contributor Author

@ifed01 ifed01 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cool!

@benhanokh benhanokh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • [ ]

@liewegas

Copy link
Copy Markdown
Member

@neha-ojha

Copy link
Copy Markdown
Member

Let's run it through a broader rados run as well

@liewegas
liewegas merged commit c9e647a into ceph:master Oct 28, 2021
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.

5 participants