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

tanxinyu pushed a commit to branch rel/1.0
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/1.0 by this push:
     new b0a441e735 [To rel/1.0][IOTDB-5153] Fix dead lock in confignode  
(#8893)
b0a441e735 is described below

commit b0a441e735b7e8e16b429c190cd0dbadbc8c5384
Author: William Song <[email protected]>
AuthorDate: Wed Jan 18 15:20:09 2023 +0800

    [To rel/1.0][IOTDB-5153] Fix dead lock in confignode  (#8893)
    
    * address dead lock
---
 .../confignode/persistence/executor/ConfigPlanExecutor.java      | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git 
a/confignode/src/main/java/org/apache/iotdb/confignode/persistence/executor/ConfigPlanExecutor.java
 
b/confignode/src/main/java/org/apache/iotdb/confignode/persistence/executor/ConfigPlanExecutor.java
index 70a85fa24e..47a44c754d 100644
--- 
a/confignode/src/main/java/org/apache/iotdb/confignode/persistence/executor/ConfigPlanExecutor.java
+++ 
b/confignode/src/main/java/org/apache/iotdb/confignode/persistence/executor/ConfigPlanExecutor.java
@@ -171,12 +171,12 @@ public class ConfigPlanExecutor {
     this.authorInfo = authorInfo;
     this.snapshotProcessorList.add(authorInfo);
 
-    this.udfInfo = udfInfo;
-    this.snapshotProcessorList.add(udfInfo);
-
     this.triggerInfo = triggerInfo;
     this.snapshotProcessorList.add(triggerInfo);
 
+    this.udfInfo = udfInfo;
+    this.snapshotProcessorList.add(udfInfo);
+
     this.syncInfo = syncInfo;
     this.snapshotProcessorList.add(syncInfo);
 
@@ -397,8 +397,7 @@ public class ConfigPlanExecutor {
     }
 
     AtomicBoolean result = new AtomicBoolean(true);
-    snapshotProcessorList
-        .parallelStream()
+    snapshotProcessorList.stream()
         .forEach(
             x -> {
               boolean takeSnapshotResult = true;

Reply via email to