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

[improve](cache) File cache async init #39036

Merged
merged 9 commits into from
Aug 15, 2024

Conversation

suxiaogang223
Copy link
Contributor

Proposed changes

Do load_cache_info_into_memory() asynchronously in a background thread in LRUFileCache::initialize().
When the cache is not ready, LRUFileCache::get_or_set() will return the FileBlock which state is SKIP_CACHE.

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

be/src/io/cache/block/block_lru_file_cache.cpp Outdated Show resolved Hide resolved
be/src/io/cache/block/block_lru_file_cache.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

be/src/io/cache/block/block_lru_file_cache.cpp Outdated Show resolved Hide resolved
be/src/io/cache/block/block_lru_file_cache.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

github-actions bot commented Aug 7, 2024

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

github-actions bot commented Aug 8, 2024

clang-tidy review says "All clean, LGTM! 👍"

@suxiaogang223
Copy link
Contributor Author

run buildall

Copy link
Contributor

github-actions bot commented Aug 9, 2024

clang-tidy review says "All clean, LGTM! 👍"

@suxiaogang223
Copy link
Contributor Author

run buildall

Copy link
Contributor

github-actions bot commented Aug 9, 2024

clang-tidy review says "All clean, LGTM! 👍"

@suxiaogang223
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@suxiaogang223
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@morningman morningman merged commit 0680c8d into apache:branch-2.1 Aug 15, 2024
19 of 21 checks passed
@suxiaogang223 suxiaogang223 deleted the file_cache_async_init branch August 15, 2024 08:47
morningman pushed a commit to morningman/doris that referenced this pull request Aug 18, 2024
@yiguolei yiguolei mentioned this pull request Sep 5, 2024
3 tasks
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.

3 participants