This is an automated email from the ASF dual-hosted git repository.

morrysnow pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new 300105bee35 branch-3.1: [fix](be java) be hang while 
enable_java_support #52818 (#52824)
300105bee35 is described below

commit 300105bee3562fc308fd38470746d0fbd9273a93
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Jul 8 14:18:46 2025 +0800

    branch-3.1: [fix](be java) be hang while enable_java_support #52818 (#52824)
    
    Cherry-picked from #52818
    
    Co-authored-by: camby <[email protected]>
---
 be/src/olap/rowset/rowset_meta.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/olap/rowset/rowset_meta.cpp 
b/be/src/olap/rowset/rowset_meta.cpp
index d3e67c3fad4..137f5c745ce 100644
--- a/be/src/olap/rowset/rowset_meta.cpp
+++ b/be/src/olap/rowset/rowset_meta.cpp
@@ -229,7 +229,7 @@ void RowsetMeta::set_segments_key_bounds(const 
std::vector<KeyBoundsPB>& segment
 
     int32_t truncation_threshold = 
config::segments_key_bounds_truncation_threshold;
     if (config::random_segments_key_bounds_truncation) {
-        static thread_local std::mt19937 generator(std::random_device {}());
+        std::mt19937 generator(std::random_device {}());
         std::uniform_int_distribution<int> distribution(-10, 40);
         truncation_threshold = distribution(generator);
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to