This is an automated email from the ASF dual-hosted git repository.
jackietien 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 1fb7229c2d Fix DeadLock bug (#6334)
1fb7229c2d is described below
commit 1fb7229c2d44ffb562997b6ceafc08745d538477
Author: Jackie Tien <[email protected]>
AuthorDate: Mon Jun 20 08:32:25 2022 +0800
Fix DeadLock bug (#6334)
---
.../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() {