Skip to content

Commit

Permalink
[BugFix] Fix shared UDF concurrent load issue (backport #54779) (#55232)
Browse files Browse the repository at this point in the history
Co-authored-by: wangshisan <[email protected]>
  • Loading branch information
mergify[bot] and wangshisan authored Feb 14, 2025
1 parent 6fca37f commit ecb80b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion be/src/runtime/user_function_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ Status UserFunctionCache::_load_cache_entry(const std::string& url, UserFunction
RETURN_IF_ERROR(_download_lib(url, entry));
}

RETURN_IF_ERROR(_load_cache_entry_internal(url, entry, loader));
if (!entry->is_loaded.load()) {
RETURN_IF_ERROR(_load_cache_entry_internal(url, entry, loader));
}
return Status::OK();
}

Expand Down

0 comments on commit ecb80b4

Please sign in to comment.