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

[BugFix] Check the datacache usability before calling its function in case that the uninitialized members are called in some cases. #51158

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion be/src/runtime/exec_env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ void ExecEnv::try_release_resource_before_core_dump() {
storage_page_cache->set_capacity(0);
LOG(INFO) << "release storage page cache memory";
}
if (_block_cache != nullptr && need_release("data_cache")) {
if (_block_cache != nullptr && _block_cache->available() && need_release("data_cache")) {
// TODO: Currently, block cache don't support shutdown now,
// so here will temporary use update_mem_quota instead to release memory.
(void)_block_cache->update_mem_quota(0, false);
Expand Down
Loading