Skip to content

test/librbd/test_internal: change to check for 4KB-aligned sparse read - #55978

Merged
idryomov merged 1 commit into
ceph:mainfrom
xxhdx1985126:wip-librbd-unittest-sparsify
Apr 30, 2024
Merged

idryomov merged 1 commit into
ceph:mainfrom
xxhdx1985126:wip-librbd-unittest-sparsify

Conversation

@xxhdx1985126

@xxhdx1985126 xxhdx1985126 commented Mar 6, 2024 •

Copy link
Copy Markdown
Member

Signed-off-by: Xuehan Xu [email protected]

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

@xxhdx1985126
xxhdx1985126 requested a review from a team as a code owner March 6, 2024 01:43

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

LGTM, let's wait on @idryomov though

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

Please explain the reason for the change in the commit message like you did in #55984.

Comment thread src/test/librbd/test_internal.cc Resolved

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

  • same nits on * 1 as in the other PR
  • SnapshotCopyup test needs adjustment -- currently it expects sub-4KB extents from sparse read:
        if (snap_name == NULL) {
          expected_m = {{0, 512}, {1024, 256}};
          expected_bl.append(std::string(256 * 3, '1'));
        } else {
          expected_m = {{0, 256}, {1024, 256}};
          expected_bl.append(std::string(256 * 2, '1'));
        }

Comment thread src/test/librbd/test_internal.cc Resolved
Comment thread src/test/librbd/test_internal.cc Resolved
Comment thread src/test/librbd/test_internal.cc Resolved
@xxhdx1985126
xxhdx1985126 force-pushed the wip-librbd-unittest-sparsify branch 2 times, most recently from 6839cf4 to 0a5b60c Compare March 7, 2024 02:32
Comment thread src/test/librbd/test_internal.cc Resolved
@xxhdx1985126
xxhdx1985126 force-pushed the wip-librbd-unittest-sparsify branch from 0a5b60c to 37b38c4 Compare March 8, 2024 05:49

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

Otherwise LGTM!

Comment thread src/test/librbd/test_internal.cc Resolved
SeaStore::fiemap() can only supported 4096-aligned sparse read.

Co-authored-by: Ilya Dryomov <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
@xxhdx1985126
xxhdx1985126 force-pushed the wip-librbd-unittest-sparsify branch from 37b38c4 to defbebf Compare March 11, 2024 10:18
@xxhdx1985126 xxhdx1985126 mentioned this pull request Mar 13, 2024
4 of 14 tasks
@xxhdx1985126

Copy link
Copy Markdown
Member Author

Hi, everyone, can this PR be merged? Thanks:-)

@idryomov

Copy link
Copy Markdown
Contributor

Hi, everyone, can this PR be merged? Thanks:-)

Apologies for the delay -- I missed the last push which adjusted rbd_sparse_read_threshold_bytes setting.

@idryomov
idryomov merged commit b720f55 into ceph:main Apr 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.

3 participants