-
Notifications
You must be signed in to change notification settings - Fork 962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Region migration improvement #12165
Region migration improvement #12165
Conversation
…w commits: IT pass: select coordinator deterministically confignode RegionMigrateProcedure stage finished breakpoint select coordinator deterministically IT improve adding stopForcibly IT file function improve confignode RegionMigrateProcedure stage finished breakpoint add function IT basic frame done save
…gionPeerProcedure, include below commits: split RegionMigrateProcedure: delete useless code split procedure: RemoveRegionPeer successfully split, IT pass split procedure: AddRegionPeer successfully split, IT pass split procedure: ready split procedure: ready split procedure: have some problem
# Conflicts: # integration-test/src/main/java/org/apache/iotdb/it/env/cluster/env/AbstractEnv.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/consensus/request/ConfigPhysicalPlan.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ConfigManager.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/IManager.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/executor/ConfigPlanExecutor.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/ProcedureExecutor.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/region/AddRegionPeerProcedure.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/region/RemoveRegionPeerProcedure.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/store/ProcedureFactory.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/service/thrift/ConfigNodeRPCServiceProcessor.java # iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/client/ConfigNodeClient.java # iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/FileUtils.java # iotdb-protocol/thrift-datanode/src/main/thrift/datanode.thrift
# Conflicts: # integration-test/src/main/java/org/apache/iotdb/it/env/cluster/env/AbstractEnv.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/consensus/request/ConfigPhysicalPlan.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ConfigManager.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/IManager.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/executor/ConfigPlanExecutor.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/ProcedureExecutor.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/region/AddRegionPeerProcedure.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/region/RemoveRegionPeerProcedure.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/store/ProcedureFactory.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/service/thrift/ConfigNodeRPCServiceProcessor.java # iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/client/ConfigNodeClient.java # iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/FileUtils.java # iotdb-protocol/thrift-datanode/src/main/thrift/datanode.thrift
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This optimization will merge in another pr
.../org/apache/iotdb/confignode/consensus/request/write/partition/UpdateRegionLocationPlan.java
Outdated
Show resolved
Hide resolved
...e/confignode/src/main/java/org/apache/iotdb/confignode/procedure/store/ProcedureFactory.java
Outdated
Show resolved
Hide resolved
…ration_clear2 # Conflicts: # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeConstant.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/consensus/request/ConfigPhysicalPlan.java # iotdb-core/confignode/src/test/java/org/apache/iotdb/confignode/consensus/request/ConfigPhysicalPlanSerDeTest.java
# Conflicts: # integration-test/src/main/java/org/apache/iotdb/it/env/cluster/node/AbstractNodeWrapper.java
d89f815
to
5a4c645
Compare
...ation-test/src/test/java/org/apache/iotdb/confignode/it/IoTDBRegionMigrateReliabilityIT.java
Outdated
Show resolved
Hide resolved
...node/src/main/java/org/apache/iotdb/confignode/consensus/request/ConfigPhysicalPlanType.java
Show resolved
Hide resolved
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java
Outdated
Show resolved
Hide resolved
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java
Outdated
Show resolved
Hide resolved
regionPriorityEntry.getValue().getRight().getDataNodeLocations().stream() | ||
.map(TDataNodeLocation::getDataNodeId) | ||
.collect(Collectors.toList())); | ||
} catch (Exception e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CRZbulabula PTAL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why surrounding with try-catch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why surrounding with try-catch?
because NPE @CRZbulabula
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My mistake!!! I should fix this bug these days >_<
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/IoTConsensusServerImpl.java
Outdated
Show resolved
Hide resolved
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/iot/IoTConsensusServerImpl.java
Show resolved
Hide resolved
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/RegionMigrateService.java
Show resolved
Hide resolved
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/DataNodeKillPoints.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PTAL~
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java
Outdated
Show resolved
Hide resolved
regionPriorityEntry.getValue().getRight().getDataNodeLocations().stream() | ||
.map(TDataNodeLocation::getDataNodeId) | ||
.collect(Collectors.toList())); | ||
} catch (Exception e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why surrounding with try-catch?
.../src/main/java/org/apache/iotdb/confignode/procedure/impl/region/AddRegionPeerProcedure.java
Show resolved
Hide resolved
integration-test/src/main/java/org/apache/iotdb/it/env/cluster/env/AbstractEnv.java
Show resolved
Hide resolved
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/DataNodeKillPoints.java
Show resolved
Hide resolved
# Conflicts: # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/ProcedureExecutor.java
# Conflicts: # iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ProcedureManager.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
.../src/main/java/org/apache/iotdb/confignode/procedure/impl/region/RegionMigrateProcedure.java
Show resolved
Hide resolved
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/RegionMigrateService.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Cooperated with @BUAAserein and @SzyWilliam, thanks for your efforts~
https://apache-iotdb.feishu.cn/docx/MC8gdgTgOoG9eYx9MIpcrtB9n4e