New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unittest_alloc: add test_alloc_big #14844

Merged
merged 1 commit into from May 4, 2017

Conversation

Projects
None yet
3 participants
@liewegas
Member

liewegas commented Apr 27, 2017

Ensure that big allocations work.

Verifies http://tracker.ceph.com/issues/16662

Signed-off-by: Sage Weil sage@redhat.com

alloc->init_add_free(2*block_size, (blocks-2)*block_size);
for (int64_t big = mas; big < 1048576*128; big*=2) {
cout << big << std::endl;
EXPECT_EQ(alloc->reserve(big), 0);

This comment has been minimized.

@tchaikov

tchaikov Apr 29, 2017

Contributor

nit, should be

EXPECT_EQ(0, alloc->reserve(big));

the first param is the expected value.

@tchaikov

tchaikov Apr 29, 2017

Contributor

nit, should be

EXPECT_EQ(0, alloc->reserve(big));

the first param is the expected value.

Show outdated Hide outdated src/test/objectstore/Allocator_test.cc
AllocExtentVector extents;
EXPECT_EQ(big,
alloc->allocate(big, mas, 0, &extents));
extents.clear();

This comment has been minimized.

@ifed01

ifed01 May 4, 2017

Contributor

nit, not needed

@ifed01

ifed01 May 4, 2017

Contributor

nit, not needed

@ifed01

ifed01 approved these changes May 4, 2017

unittest_alloc: add test_alloc_big
Ensure that big allocations work.

Verifies http://tracker.ceph.com/issues/16662

Signed-off-by: Sage Weil <sage@redhat.com>

@liewegas liewegas merged commit 81872fd into ceph:master May 4, 2017

0 of 3 checks passed

Signed-off-by checking if commits are signed
Details
Unmodifed Submodules checking if PR has modified submodules
Details
default Build started sha1 is merged.
Details

@liewegas liewegas deleted the liewegas:wip-bluestore-bitalloc branch May 4, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment