Skip to content
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

fix: capacity should equal to total / part_num #960

Merged
merged 2 commits into from
Jun 1, 2023

Conversation

jiacai2050
Copy link
Contributor

@jiacai2050 jiacai2050 commented Jun 1, 2023

Rationale

Current mem cache will consume more memory than expected.

Detailed Changes

Fix the wrong capacity of a partition cache.

Test Plan

Add UT test_mem_cache_capacity

Copy link
Member

@ShiKaiWi ShiKaiWi left a comment

Choose a reason for hiding this comment

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

LGTM

@ShiKaiWi ShiKaiWi merged commit b6bb8f0 into apache:main Jun 1, 2023
@jiacai2050 jiacai2050 deleted the fix-mem-cache branch June 1, 2023 11:37
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