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

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


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 9cec72ed7e5 branch-4.0: [fix](fe) cloud replica use one Random object 
to reduce memory #59320 (#59373)
9cec72ed7e5 is described below

commit 9cec72ed7e59da3a8b04e7a68492e628e7f72c20
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Dec 26 18:14:05 2025 +0800

    branch-4.0: [fix](fe) cloud replica use one Random object to reduce memory 
#59320 (#59373)
    
    Cherry-picked from #59320
    
    Co-authored-by: meiyi <[email protected]>
---
 .../src/main/java/org/apache/doris/cloud/catalog/CloudReplica.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudReplica.java 
b/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudReplica.java
index e2482ccad1f..2834551b2da 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudReplica.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudReplica.java
@@ -67,7 +67,7 @@ public class CloudReplica extends Replica {
     @SerializedName(value = "idx")
     private long idx = -1;
 
-    private Random rand = new Random();
+    private static final Random rand = new Random();
 
     private Map<String, List<Long>> memClusterToBackends = new 
ConcurrentHashMap<String, List<Long>>();
 


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

Reply via email to