This is an automated email from the ASF dual-hosted git repository. w41ter pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push: new fa438c65612 [improve](common) Add synchronized to avoid concurrent modification #42384 (#42455) fa438c65612 is described below commit fa438c65612f99fad1a5fc542f9384feb876e41e Author: walter <w41te...@gmail.com> AuthorDate: Mon Oct 28 10:17:27 2024 +0800 [improve](common) Add synchronized to avoid concurrent modification #42384 (#42455) 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