You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2022/06/19 14:17:14 UTC

[iotdb] 01/01: Fix DeadLock bug

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

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

commit 7c521aa0c4af8f0d5e7bdcca02f55ed75bfd7fc2
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Sun Jun 19 22:16:24 2022 +0800

    Fix DeadLock bug
---
 .../iotdb/db/mpp/execution/datatransfer/LocalSourceHandle.java      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/execution/datatransfer/LocalSourceHandle.java b/server/src/main/java/org/apache/iotdb/db/mpp/execution/datatransfer/LocalSourceHandle.java
index 644a21ccb9..205604b806 100644
--- a/server/src/main/java/org/apache/iotdb/db/mpp/execution/datatransfer/LocalSourceHandle.java
+++ b/server/src/main/java/org/apache/iotdb/db/mpp/execution/datatransfer/LocalSourceHandle.java
@@ -128,9 +128,9 @@ public class LocalSourceHandle implements ISourceHandle {
   }
 
   @Override
-  public synchronized void abort() {
-    logger.info("Source handle is being aborted.");
+  public void abort() {
     try (SetThreadName sourceHandleName = new SetThreadName(threadName)) {
+      logger.info("Source handle is being aborted.");
       synchronized (queue) {
         synchronized (this) {
           if (aborted) {
@@ -141,8 +141,8 @@ public class LocalSourceHandle implements ISourceHandle {
           sourceHandleListener.onAborted(this);
         }
       }
+      logger.info("Source handle is aborted");
     }
-    logger.info("Source handle is aborted");
   }
 
   public TFragmentInstanceId getRemoteFragmentInstanceId() {