You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2025/12/26 10:14:14 UTC
(doris) branch branch-4.0 updated: branch-4.0: [fix](fe) cloud replica use one Random object to reduce memory #59320 (#59373)
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] <41...@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 <me...@selectdb.com>
---
.../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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org