Skip to content

test/cls_rbd/test_cls_rbd: update TestClsRbd.sparsify#30258

Merged
tchaikov merged 1 commit intoceph:masterfrom
tchaikov:wip-41721
Sep 10, 2019
Merged

test/cls_rbd/test_cls_rbd: update TestClsRbd.sparsify#30258
tchaikov merged 1 commit intoceph:masterfrom
tchaikov:wip-41721

Conversation

@tchaikov
Copy link
Contributor

@tchaikov tchaikov commented Sep 9, 2019

after #30061, extents returned by sparse read will always be
an empty map as long as the extents to be read is empty or the extent(s)
in it are empty, even of the objectstorage does not support sparse read.

Fixes: https://tracker.ceph.com/issues/41721
Signed-off-by: Kefu Chai kchai@redhat.com

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 signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard backend
  • jenkins test docs
  • jenkins render docs

@xiexingguo
Copy link
Member

oops, seems I slightly changed the output behavior of sparse_read. not sure if it is acceptable,
if not, perhaps we should revert 2296019 instead...

Copy link
Member

@xiexingguo xiexingguo left a comment

Choose a reason for hiding this comment

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

I'd leave it to jason, since rbd is the main consumer of sparse_read

@dillaman
Copy link

dillaman commented Sep 9, 2019

@tchaikov While this change is fine, the only issue is that I believe this test is run during upgrades, so if the OSD behaviour changes, older versions of the test will fail.

@tchaikov
Copy link
Contributor Author

tchaikov commented Sep 9, 2019

@dillaman after a second thought, probably we could remove this test, if we are not relying on this behavior?

@dillaman
Copy link

dillaman commented Sep 9, 2019

@tchaikov Same upgrade problem.

@tchaikov
Copy link
Contributor Author

tchaikov commented Sep 9, 2019

changelog

  • incorporated a variant of the change suggested by @dillaman

after ceph#30061, extents returned by sparse read will always be
an empty map as long as the extents to be read is empty or the extent(s)
in it are empty, even of the objectstorage does not support sparse read.

Fixes: https://tracker.ceph.com/issues/41721
Signed-off-by: Kefu Chai <kchai@redhat.com>
@tchaikov
Copy link
Contributor Author

tchaikov commented Sep 9, 2019

@dillaman fixed and repushed.

Copy link

@dillaman dillaman left a comment

Choose a reason for hiding this comment

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

lgtm

@tchaikov
Copy link
Contributor Author

@tchaikov tchaikov merged commit 8dfb9db into ceph:master Sep 10, 2019
@tchaikov tchaikov deleted the wip-41721 branch September 10, 2019 08:27
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.

4 participants