You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ta...@apache.org on 2024/04/17 04:24:36 UTC

(iotdb) branch revert-12350-optimize-for-insert-first created (now c5c660b83fc)

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

tanxinyu pushed a change to branch revert-12350-optimize-for-insert-first
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at c5c660b83fc Revert "Fix auto leader balance for Ratis protocol judgement bug (#12350)"

This branch includes the following new commits:

     new c5c660b83fc Revert "Fix auto leader balance for Ratis protocol judgement bug (#12350)"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(iotdb) 01/01: Revert "Fix auto leader balance for Ratis protocol judgement bug (#12350)"

Posted by ta...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tanxinyu pushed a commit to branch revert-12350-optimize-for-insert-first
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit c5c660b83fca2ec30d46b9fb81eae134862a8cc3
Author: Potato <ta...@apache.org>
AuthorDate: Wed Apr 17 12:24:31 2024 +0800

    Revert "Fix auto leader balance for Ratis protocol judgement bug (#12350)"
    
    This reverts commit 6e4863bfb51b3c853ee47c09c9772ebe334ef8e4.
---
 .../apache/iotdb/confignode/manager/load/balancer/RouteBalancer.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/balancer/RouteBalancer.java b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/balancer/RouteBalancer.java
index dae72dad80d..25b3fc31478 100644
--- a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/balancer/RouteBalancer.java
+++ b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/balancer/RouteBalancer.java
@@ -175,7 +175,7 @@ public class RouteBalancer implements IClusterStatusSubscriber {
         (regionGroupId, newLeaderId) -> {
           if (ConsensusFactory.RATIS_CONSENSUS.equals(consensusProtocolClass)
               && currentTime - lastFailedTimeForLeaderBalance.getOrDefault(regionGroupId, 0L)
-                  <= BALANCE_RATIS_LEADER_FAILED_INTERVAL) {
+                  > BALANCE_RATIS_LEADER_FAILED_INTERVAL) {
             return;
           }