Skip to content

Commit 9cec72e

Browse files
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]>
1 parent 7c28cdd commit 9cec72e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudReplica.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class CloudReplica extends Replica {
6767
@SerializedName(value = "idx")
6868
private long idx = -1;
6969

70-
private Random rand = new Random();
70+
private static final Random rand = new Random();
7171

7272
private Map<String, List<Long>> memClusterToBackends = new ConcurrentHashMap<String, List<Long>>();
7373

0 commit comments

Comments
 (0)