This is an automated email from the ASF dual-hosted git repository.
w41ter pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new ce5e44c00dc [improve](common) Add synchronized to avoid concurrent
modification #42384 (#42453)
ce5e44c00dc is described below
commit ce5e44c00dc71e8045d83f36ed70ff4f3ddece19
Author: walter <[email protected]>
AuthorDate: Fri Oct 25 11:30:47 2024 +0800
[improve](common) Add synchronized to avoid concurrent modification #42384
(#42453)
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: [email protected]
For additional commands, e-mail: [email protected]