Skip to content

Conversation

@byrnedj
Copy link

@byrnedj byrnedj commented Nov 8, 2023

as a bonus - we have a proper test


auto allocFn = [&](std::string keyPrefix, std::vector<uint32_t> sizes) {
for (unsigned int loop = 0; loop < 20; ++loop) {
std::vector<typename AllocatorT::WriteHandle> parentHandles;
Copy link
Owner

Choose a reason for hiding this comment

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

parentHandles is not used?

Copy link
Author

Choose a reason for hiding this comment

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

removed - it was leftover from initial test that I used as base

while (alloc->getSlabReleaseStats().numSlabReleaseForRebalance < 20) {
sleep(1);
}
//for ASSERT_EXIT
Copy link
Owner

Choose a reason for hiding this comment

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

I did not get why we need exit(0)

Copy link
Author

Choose a reason for hiding this comment

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

Because we use the ASSERT_EXIT to check if CacheLib aborts due to mismatched parent handle or if the test completes with no aborts.

@byrnedj byrnedj force-pushed the fix_acquire_rebased branch 2 times, most recently from 115789f to fb8e23c Compare November 13, 2023 16:47
@vinser52 vinser52 merged commit fe21ef6 into vinser52:upstream_transparent_move Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants