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

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


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 859332c918d [improve](common) Add synchronized to avoid concurrent 
modification #42384 (#42454)
859332c918d is described below

commit 859332c918def838be0b49cd59a624158402c6c7
Author: walter <w41te...@gmail.com>
AuthorDate: Fri Oct 25 16:33:53 2024 +0800

    [improve](common) Add synchronized to avoid concurrent modification #42384 
(#42454)
    
    cherry pick from #42384
---
 .../src/main/java/org/apache/doris/common/MarkedCountDownLatch.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/common/MarkedCountDownLatch.java 
b/fe/fe-core/src/main/java/org/apache/doris/common/MarkedCountDownLatch.java
index ba407e7f3e1..14641d501d7 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/common/MarkedCountDownLatch.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/common/MarkedCountDownLatch.java
@@ -35,7 +35,7 @@ public class MarkedCountDownLatch<K, V> extends 
CountDownLatch {
         marks = HashMultimap.create();
     }
 
-    public void addMark(K key, V value) {
+    public synchronized void addMark(K key, V value) {
         marks.put(key, value);
     }
 
@@ -51,7 +51,7 @@ public class MarkedCountDownLatch<K, V> extends 
CountDownLatch {
         return Lists.newArrayList(marks.entries());
     }
 
-    public Status getStatus() {
+    public synchronized Status getStatus() {
         return st;
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to