Skip to content

os/bluestore: cap omap naming scheme upgrade transaction - #39377

Merged
neha-ojha merged 1 commit into
ceph:masterfrom
ifed01:wip-ifed-fix-huge-omap-rename
Aug 27, 2021
Merged

neha-ojha merged 1 commit into
ceph:masterfrom
ifed01:wip-ifed-fix-huge-omap-rename

Conversation

@ifed01

@ifed01 ifed01 commented Feb 9, 2021 •

Copy link
Copy Markdown
Contributor

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

  • 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 api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@ifed01
ifed01 force-pushed the wip-ifed-fix-huge-omap-rename branch from 98130be to e26bf1d Compare April 19, 2021 09:44
@stale

stale Bot commented Jul 21, 2021

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.

@stale stale Bot added the stale label Jul 21, 2021
@tchaikov

Copy link
Copy Markdown
Contributor

@aclamk ping?

@stale stale Bot removed the stale label Jul 21, 2021

@aclamk aclamk 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.

This is excellent stuff.

Can it be split into 3 separate PRs?

  1. BlueFS commit is a necessary fixup to cherry backport
  2. OMAP conversion split for multiple transactions must be merged, but I still have stylistic issues with omap-related support functions in Onode
  3. 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?

Comment thread src/os/bluestore/BlueStore.h Outdated

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.

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_" ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread src/os/bluestore/BlueStore.cc Outdated

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.

Please put get_omap_tail and rewrite_omap_key in previous order (smaller diff)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread src/os/bluestore/BlueStore.cc Outdated

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.

spaces: "1 << 20"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

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]>
@ifed01
ifed01 force-pushed the wip-ifed-fix-huge-omap-rename branch from e26bf1d to e897fa2 Compare August 18, 2021 14:14
@ifed01

ifed01 commented Aug 18, 2021

Copy link
Copy Markdown
Contributor Author

This is excellent stuff.

Can it be split into 3 separate PRs?

  1. BlueFS commit is a necessary fixup to cherry backport
  2. OMAP conversion split for multiple transactions must be merged, but I still have stylistic issues with omap-related support functions in Onode
  3. 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?

split into #42832 & #42831

@aclamk aclamk 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.

Excellent! Now I hope bluefs/rocksdb will no longer have problems when converting omap.

@neha-ojha

Copy link
Copy Markdown
Member

@ifed01 I noticed this failure which I have not seen in other rados/objectore runs like [0], can you please take a look

2021-08-24T05:50:19.177 INFO:teuthology.orchestra.run.smithi016.stdout:[ RUN      ] ObjectStore/StoreTestSpecificAUSize.BluestoreBrokenNoSharedBlobRepairTest/2
2021-08-24T05:50:22.757 INFO:teuthology.orchestra.run.smithi016.stderr:initializing
2021-08-24T05:50:22.790 INFO:teuthology.orchestra.run.smithi016.stderr:injecting
2021-08-24T05:50:25.832 INFO:teuthology.orchestra.run.smithi016.stderr:fscking/fixing
2021-08-24T05:50:27.038 INFO:teuthology.orchestra.run.smithi016.stdout:/home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-7202-gb23acbf1/rpm/el8/BUILD/ceph-17.0.0-7202-gb23acbf1/src/test/objectstore/store_test.cc:8627: Failure
2021-08-24T05:50:27.038 INFO:teuthology.orchestra.run.smithi016.stdout:Expected equality of these values:
2021-08-24T05:50:27.039 INFO:teuthology.orchestra.run.smithi016.stdout:  bstore->fsck(false)
2021-08-24T05:50:27.039 INFO:teuthology.orchestra.run.smithi016.stdout:    Which is: 2
2021-08-24T05:50:27.039 INFO:teuthology.orchestra.run.smithi016.stdout:  3
2021-08-24T05:50:27.040 INFO:teuthology.orchestra.run.smithi016.stderr:/home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-7202-gb23acbf1/rpm/el8/BUILD/ceph-17.0.0-7202-gb23acbf1/src/os/bluestore/BlueStore.cc: In function 'virtual int BlueStore::umount()' thread 7fda2c9ba3c0 time 2021-08-24T05:50:27.038863+0000
2021-08-24T05:50:27.040 INFO:teuthology.orchestra.run.smithi016.stderr:/home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-7202-gb23acbf1/rpm/el8/BUILD/ceph-17.0.0-7202-gb23acbf1/src/os/bluestore/BlueStore.cc: 7222: FAILED ceph_assert(_kv_only || mounted)
2021-08-24T05:50:27.040 INFO:teuthology.orchestra.run.smithi016.stderr: ceph version 17.0.0-7202-gb23acbf1 (b23acbf12b68a7e38b78396f35373a98f8c99544) quincy (dev)
2021-08-24T05:50:27.041 INFO:teuthology.orchestra.run.smithi016.stderr: 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x152) [0x7fda2a0acfe2]
2021-08-24T05:50:27.041 INFO:teuthology.orchestra.run.smithi016.stderr: 2: /usr/lib64/ceph/libceph-common.so.2(+0x284203) [0x7fda2a0ad203]
2021-08-24T05:50:27.041 INFO:teuthology.orchestra.run.smithi016.stderr: 3: (BlueStore::umount()+0x9fa) [0x559ef8ebeb9a]
2021-08-24T05:50:27.041 INFO:teuthology.orchestra.run.smithi016.stderr: 4: (StoreTestFixture::TearDown()+0x68) [0x559ef8d43718]
2021-08-24T05:50:27.041 INFO:teuthology.orchestra.run.smithi016.stderr: 5: (void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)+0x8f) [0x559ef8fe83df]
2021-08-24T05:50:27.042 INFO:teuthology.orchestra.run.smithi016.stderr: 6: (testing::TestInfo::Run()+0x135) [0x559ef8fdbf65]
2021-08-24T05:50:27.042 INFO:teuthology.orchestra.run.smithi016.stderr: 7: (testing::TestSuite::Run()+0xc1) [0x559ef8fdc4c1]
2021-08-24T05:50:27.042 INFO:teuthology.orchestra.run.smithi016.stderr: 8: (testing::internal::UnitTestImpl::RunAllTests()+0x445) [0x559ef8fde0d5]
2021-08-24T05:50:27.042 INFO:teuthology.orchestra.run.smithi016.stderr: 9: (bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)+0x8f) [0x559ef8fe894f]
2021-08-24T05:50:27.043 INFO:teuthology.orchestra.run.smithi016.stderr: 10: (testing::UnitTest::Run()+0xa0) [0x559ef8fdc030]
2021-08-24T05:50:27.043 INFO:teuthology.orchestra.run.smithi016.stderr: 11: main()
2021-08-24T05:50:27.043 INFO:teuthology.orchestra.run.smithi016.stderr: 12: __libc_start_main()
2021-08-24T05:50:27.043 INFO:teuthology.orchestra.run.smithi016.stderr: 13: _start()

http://pulpito.front.sepia.ceph.com/yuriw-2021-08-23_19:25:52-rados-wip-yuri8-testing-2021-08-23-0850-distro-basic-smithi/6353854/

[0] https://pulpito.ceph.com/yuriw-2021-08-20_19:20:10-rados-wip-yuri-master-8.20.21-distro-basic-smithi/6349746/

@neha-ojha

neha-ojha commented Aug 24, 2021 •

Copy link
Copy Markdown
Member

@ifed01 I noticed this failure which I have not seen in other rados/objectore runs like [0], can you please take a look

2021-08-24T05:50:19.177 INFO:teuthology.orchestra.run.smithi016.stdout:[ RUN      ] ObjectStore/StoreTestSpecificAUSize.BluestoreBrokenNoSharedBlobRepairTest/2
2021-08-24T05:50:22.757 INFO:teuthology.orchestra.run.smithi016.stderr:initializing
2021-08-24T05:50:22.790 INFO:teuthology.orchestra.run.smithi016.stderr:injecting
2021-08-24T05:50:25.832 INFO:teuthology.orchestra.run.smithi016.stderr:fscking/fixing
2021-08-24T05:50:27.038 INFO:teuthology.orchestra.run.smithi016.stdout:/home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-7202-gb23acbf1/rpm/el8/BUILD/ceph-17.0.0-7202-gb23acbf1/src/test/objectstore/store_test.cc:8627: Failure
2021-08-24T05:50:27.038 INFO:teuthology.orchestra.run.smithi016.stdout:Expected equality of these values:
2021-08-24T05:50:27.039 INFO:teuthology.orchestra.run.smithi016.stdout:  bstore->fsck(false)
2021-08-24T05:50:27.039 INFO:teuthology.orchestra.run.smithi016.stdout:    Which is: 2
2021-08-24T05:50:27.039 INFO:teuthology.orchestra.run.smithi016.stdout:  3
2021-08-24T05:50:27.040 INFO:teuthology.orchestra.run.smithi016.stderr:/home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-7202-gb23acbf1/rpm/el8/BUILD/ceph-17.0.0-7202-gb23acbf1/src/os/bluestore/BlueStore.cc: In function 'virtual int BlueStore::umount()' thread 7fda2c9ba3c0 time 2021-08-24T05:50:27.038863+0000
2021-08-24T05:50:27.040 INFO:teuthology.orchestra.run.smithi016.stderr:/home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.0.0-7202-gb23acbf1/rpm/el8/BUILD/ceph-17.0.0-7202-gb23acbf1/src/os/bluestore/BlueStore.cc: 7222: FAILED ceph_assert(_kv_only || mounted)
2021-08-24T05:50:27.040 INFO:teuthology.orchestra.run.smithi016.stderr: ceph version 17.0.0-7202-gb23acbf1 (b23acbf12b68a7e38b78396f35373a98f8c99544) quincy (dev)
2021-08-24T05:50:27.041 INFO:teuthology.orchestra.run.smithi016.stderr: 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x152) [0x7fda2a0acfe2]
2021-08-24T05:50:27.041 INFO:teuthology.orchestra.run.smithi016.stderr: 2: /usr/lib64/ceph/libceph-common.so.2(+0x284203) [0x7fda2a0ad203]
2021-08-24T05:50:27.041 INFO:teuthology.orchestra.run.smithi016.stderr: 3: (BlueStore::umount()+0x9fa) [0x559ef8ebeb9a]
2021-08-24T05:50:27.041 INFO:teuthology.orchestra.run.smithi016.stderr: 4: (StoreTestFixture::TearDown()+0x68) [0x559ef8d43718]
2021-08-24T05:50:27.041 INFO:teuthology.orchestra.run.smithi016.stderr: 5: (void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*)+0x8f) [0x559ef8fe83df]
2021-08-24T05:50:27.042 INFO:teuthology.orchestra.run.smithi016.stderr: 6: (testing::TestInfo::Run()+0x135) [0x559ef8fdbf65]
2021-08-24T05:50:27.042 INFO:teuthology.orchestra.run.smithi016.stderr: 7: (testing::TestSuite::Run()+0xc1) [0x559ef8fdc4c1]
2021-08-24T05:50:27.042 INFO:teuthology.orchestra.run.smithi016.stderr: 8: (testing::internal::UnitTestImpl::RunAllTests()+0x445) [0x559ef8fde0d5]
2021-08-24T05:50:27.042 INFO:teuthology.orchestra.run.smithi016.stderr: 9: (bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*)+0x8f) [0x559ef8fe894f]
2021-08-24T05:50:27.043 INFO:teuthology.orchestra.run.smithi016.stderr: 10: (testing::UnitTest::Run()+0xa0) [0x559ef8fdc030]
2021-08-24T05:50:27.043 INFO:teuthology.orchestra.run.smithi016.stderr: 11: main()
2021-08-24T05:50:27.043 INFO:teuthology.orchestra.run.smithi016.stderr: 12: __libc_start_main()
2021-08-24T05:50:27.043 INFO:teuthology.orchestra.run.smithi016.stderr: 13: _start()

http://pulpito.front.sepia.ceph.com/yuriw-2021-08-23_19:25:52-rados-wip-yuri8-testing-2021-08-23-0850-distro-basic-smithi/6353854/

[0] https://pulpito.ceph.com/yuriw-2021-08-20_19:20:10-rados-wip-yuri-master-8.20.21-distro-basic-smithi/6349746/

@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.

@ifed01

ifed01 commented Aug 24, 2021

Copy link
Copy Markdown
Contributor Author

@neha-ojha

Copy link
Copy Markdown
Member

@neha-ojha

Copy link
Copy Markdown
Member

https://pulpito.ceph.com/yuriw-2021-08-26_18:40:53-rados-wip-yuri7-testing-2021-08-26-0841-distro-basic-smithi/
https://pulpito.ceph.com/yuriw-2021-08-26_23:49:07-rados-wip-yuri7-testing-2021-08-26-0841-distro-basic-smithi/

failures unrelated, tracked in:

https://tracker.ceph.com/issues/52399
https://tracker.ceph.com/issues/52417
https://tracker.ceph.com/issues/52315
https://tracker.ceph.com/issues/52124
https://tracker.ceph.com/issues/50280
https://tracker.ceph.com/issues/52137

Details:

Bug #52399: src/os/bluestore/HybridAllocator.cc: FAILED ceph_assert(false) - bluestore - Ceph
Bug #52417: cephadm/test_dashboard_e2e.sh: orchestrator/01-hosts.e2e-spec.ts failed. - Orchestrator - Ceph
Bug #52315: rgw: fix bucket index list test error - rgw - Ceph
Bug #52124: Invalid read of size 8 in handle_recovery_delete() - RADOS - Ceph
Bug #50280: cephadm: RuntimeError: uid/gid not found - Ceph - Ceph
Bug #52137: Valgrind reports memory "UninitCondition" error. - rgw - Ceph

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