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

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


The following commit(s) were added to refs/heads/ml_test_1_async by this push:
     new 8626a660f3 change redirect to hash mode
8626a660f3 is described below

commit 8626a660f339942f390eef4c9493b321c40cbfbd
Author: Jinrui.Zhang <[email protected]>
AuthorDate: Tue Aug 2 13:37:35 2022 +0800

    change redirect to hash mode
---
 .../mpp/plan/planner/distribution/WriteFragmentParallelPlanner.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/server/src/main/java/org/apache/iotdb/db/mpp/plan/planner/distribution/WriteFragmentParallelPlanner.java
 
b/server/src/main/java/org/apache/iotdb/db/mpp/plan/planner/distribution/WriteFragmentParallelPlanner.java
index ca99bcfacc..a14f90ade2 100644
--- 
a/server/src/main/java/org/apache/iotdb/db/mpp/plan/planner/distribution/WriteFragmentParallelPlanner.java
+++ 
b/server/src/main/java/org/apache/iotdb/db/mpp/plan/planner/distribution/WriteFragmentParallelPlanner.java
@@ -74,8 +74,8 @@ public class WriteFragmentParallelPlanner implements 
IFragmentParallelPlaner {
 
   private TDataNodeLocation fakeSelectDataNode(TRegionReplicaSet 
regionReplicaSet) {
     String[] candidate = new String[] {"172.20.31.41", "172.20.31.42", 
"172.20.31.43"};
-    //    int targetIndex = regionReplicaSet.regionId.id % 3;
-    int targetIndex = 1;
+    int targetIndex = regionReplicaSet.regionId.id % 3;
+    //    int targetIndex = 1;
     for (TDataNodeLocation location : regionReplicaSet.getDataNodeLocations()) 
{
       if (location.internalEndPoint.getIp().equals(candidate[targetIndex])) {
         return location;

Reply via email to