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

feat: limit multiple threads fetch the same block simultaneous #1190

Merged
merged 14 commits into from
Sep 7, 2023

Conversation

tanruixiang
Copy link
Member

@tanruixiang tanruixiang commented Sep 4, 2023

Rationale

The current disk cache may encounter the following scenario: Multiple threads taking the same block from object_store at the same time, To avoid this problem, we maintain a pull queue for each block, so that only one thread will pull the same block at the same time.

Detailed Changes

Test Plan

Add new UT test_disk_cache_multi_thread_fetch_same_block

@tanruixiang tanruixiang marked this pull request as ready for review September 4, 2023 06:58
Copy link
Contributor

@jiacai2050 jiacai2050 left a comment

Choose a reason for hiding this comment

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

LGTM

@jiacai2050 jiacai2050 merged commit 70996c5 into apache:main Sep 7, 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