You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hu...@apache.org on 2023/12/28 06:22:31 UTC

(iotdb) branch master updated: Add missing synchronized on abort of SourceHandle (#11793)

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

hui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 7cf82e32b33 Add missing synchronized on abort of SourceHandle (#11793)
7cf82e32b33 is described below

commit 7cf82e32b33ad80c4bd61f53f0eb9ffbdc8b5de9
Author: Liao Lanyu <14...@qq.com>
AuthorDate: Thu Dec 28 14:22:25 2023 +0800

    Add missing synchronized on abort of SourceHandle (#11793)
---
 .../iotdb/db/queryengine/execution/exchange/source/SourceHandle.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/exchange/source/SourceHandle.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/exchange/source/SourceHandle.java
index e7c25d14c04..78de2ecf386 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/exchange/source/SourceHandle.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/exchange/source/SourceHandle.java
@@ -359,7 +359,7 @@ public class SourceHandle implements ISourceHandle {
   }
 
   @Override
-  public void abort(Throwable t) {
+  public synchronized void abort(Throwable t) {
     try (SetThreadName sourceHandleName = new SetThreadName(threadName)) {
       if (aborted || closed) {
         return;