Repository navigation
os/bluestore: cap omap naming scheme upgrade transaction - #39377
Conversation
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
98130be to
e26bf1d
Compare
|
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. |
|
@aclamk ping? |
aclamk
left a comment
There was a problem hiding this comment.
This is excellent stuff.
Can it be split into 3 separate PRs?
- BlueFS commit is a necessary fixup to cherry backport
- OMAP conversion split for multiple transactions must be merged, but I still have stylistic issues with omap-related support functions in Onode
- Ability to set legacy OMAP_BULK is useful extras, but we should better document its shortcomings, like "fixing" during fsck repair. Or maybe make fsck not upgrade, or allow fsck to convert also back to legacy?
There was a problem hiding this comment.
I think 4 above functions should be static and get Onode* as parameter.
I don't like that we mix taking some data from external flag, and some data from object internals.
When nothing is passed by this, we get logic like "calculate me value for following conditions".
Maybe even "get_" should be replaced with "calc_" ?
There was a problem hiding this comment.
Please put get_omap_tail and rewrite_omap_key in previous order (smaller diff)
We shouldn't use single per-onode transaction for such an upgrade when onode's omap list is huge. This results in similarly sized WAL/SST files which are inefficient, might cause high memory usage and sometimes error-prone. Fixes: https://tracker.ceph.com/issues/49170 Signed-off-by: Igor Fedotov <[email protected]>
e26bf1d to
e897fa2
Compare
|
aclamk
left a comment
There was a problem hiding this comment.
Excellent! Now I hope bluefs/rocksdb will no longer have problems when converting omap.
|
@ifed01 I noticed this failure which I have not seen in other rados/objectore runs like [0], can you please take a look |
@ifed01 new update: doesn't look related to this PR because it was also seen in https://pulpito.ceph.com/yuriw-2021-08-23_19:18:26-rados-wip-yuri3-testing-2021-08-23-0808-distro-basic-smithi/6353210/, where no bluestore PRs were being tested (https://trello.com/c/sPHg8Syp). Seems like a new issue in master after https://github.com/ceph/ceph/pull/42439/files#diff-157b0c4b175141aba18fe37a72d49ca9175e01f69a266595d495df86b5240e86R8412 merged? Tracked in https://tracker.ceph.com/issues/52398. |
Right, this looks unrelated to the current PR, it's indeed a broken test case introduced by #42439 |
Thanks @ifed01, will this PR with the fix. |
We shouldn't use single per-onode transaction for such an upgrade when onode's omap list is huge. This results in similarly sized WAL/SST files which are inefficient, might cause high memory usage and sometimes error-prone.
Additionally fixes bluefs-dump-log command which might face incomplete bluefs log.
Fixes: https://tracker.ceph.com/issues/49170
Signed-off-by: Igor Fedotov [email protected]
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox