You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xi...@apache.org on 2022/08/09 06:50:35 UTC

[iotdb] branch ml_0808_test_exp1_parallel updated: fix the bug that the request is not removed when timeout

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

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


The following commit(s) were added to refs/heads/ml_0808_test_exp1_parallel by this push:
     new 931106741a fix the bug that the request is not removed when timeout
931106741a is described below

commit 931106741ab76b323271b27fc63a1f56a58f2eeb
Author: Jinrui.Zhang <xi...@gmail.com>
AuthorDate: Tue Aug 9 14:50:22 2022 +0800

    fix the bug that the request is not removed when timeout
---
 .../apache/iotdb/db/consensus/statemachine/DataRegionStateMachine.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/src/main/java/org/apache/iotdb/db/consensus/statemachine/DataRegionStateMachine.java b/server/src/main/java/org/apache/iotdb/db/consensus/statemachine/DataRegionStateMachine.java
index d60f3eacf4..b182a811cf 100644
--- a/server/src/main/java/org/apache/iotdb/db/consensus/statemachine/DataRegionStateMachine.java
+++ b/server/src/main/java/org/apache/iotdb/db/consensus/statemachine/DataRegionStateMachine.java
@@ -159,6 +159,7 @@ public class DataRegionStateMachine extends BaseStateMachine {
                 "waiting target request timeout. current index: {}, target index: {}",
                 insertNodeWrapper.getStartSyncIndex(),
                 nextSyncIndex);
+            requestCache.remove(insertNodeWrapper);
             break;
           }
         } catch (InterruptedException e) {