[IOTDB-2687] Base partition policy of data#5464
Conversation
confignode/src/assembly/resources/conf/iotdb-confignode.properties
Outdated
Show resolved
Hide resolved
| rpcSchemaPartitionInfo.setSchemaRegionDataNodesMap(schemaRegionReplicaSets); | ||
| return rpcSchemaPartitionInfo; | ||
|
|
||
| // resp.setSchemaRegionMap(schemaRegionMap); |
There was a problem hiding this comment.
I'm not sure currently. I first update the process of get or create SchemaPartition in ConfigNode. But then the discussion on Friday decides to change interfaces about SchemaPartition. And the PatternTree isn't ready to use for ConfigNode now. So I comment this codes casually. I'll check this codes and support new SchemaPartition interfaces in next PR.
confignode/src/main/java/org/apache/iotdb/confignode/persistence/DataNodeInfoPersistence.java
Outdated
Show resolved
Hide resolved
confignode/src/main/java/org/apache/iotdb/confignode/physical/crud/QueryDataPartitionPlan.java
Outdated
Show resolved
Hide resolved
confignode/src/main/java/org/apache/iotdb/confignode/physical/sys/SetStorageGroupPlan.java
Show resolved
Hide resolved
confignode/src/assembly/resources/conf/iotdb-confignode.properties
Outdated
Show resolved
Hide resolved
confignode/src/assembly/resources/conf/iotdb-confignode.properties
Outdated
Show resolved
Hide resolved
confignode/src/assembly/resources/conf/iotdb-confignode.properties
Outdated
Show resolved
Hide resolved
confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeConf.java
Outdated
Show resolved
Hide resolved
confignode/src/main/java/org/apache/iotdb/confignode/conf/ConfigNodeConf.java
Outdated
Show resolved
Hide resolved
confignode/src/main/java/org/apache/iotdb/confignode/persistence/DataNodeInfoPersistence.java
Outdated
Show resolved
Hide resolved
confignode/src/main/java/org/apache/iotdb/confignode/physical/PhysicalPlanType.java
Show resolved
Hide resolved
confignode/src/main/java/org/apache/iotdb/confignode/physical/crud/CreateRegionsPlan.java
Show resolved
Hide resolved
node-commons/src/main/java/org/apache/iotdb/commons/partition/TimePartitionSlot.java
Outdated
Show resolved
Hide resolved
node-commons/src/main/java/org/apache/iotdb/commons/partition/TimePartitionSlot.java
Outdated
Show resolved
Hide resolved
| // TODO: optimize | ||
| result = new TSStatus(TSStatusCode.SUCCESS_STATUS.getStatusCode()); | ||
| result.setMessage(String.valueOf(dataNodeInfo.getDataNodeInfo(info))); | ||
| } else { |
There was a problem hiding this comment.
Some judgmental and calculation logic can be placed in the manager. Only when certain conditions are met, the logic needs to be pushed down to the consensus layer.
一些判断性的和计算的逻辑可以放在manager中,只有满足一定条件后才需要下推到共识层。这样可以减轻共识层的压力。
There was a problem hiding this comment.
The judgment and calculation logic of register DataNode is on ConfigNodeRPCServerProcessor currently. In order not to return a weird TSStatus that blend with configuration parameters underneath the manager layer.
| import java.nio.ByteBuffer; | ||
|
|
||
| public class SeriesPartitionSlot { | ||
| private int deviceGroupId; |
There was a problem hiding this comment.
Renamed as slotId.
…er_meta * remotes/upstream/master: [IOTDB-2687] Base partition policy of data (apache#5464) [IOTDB-2868] Construct ExchangeOperator in LocalExecutionPlanner (apache#5466) implement serialize and deserialize of SchemaTree (apache#5474) [IOTDB-2559][IOTDB-1840][IOTDB-2215][IOTDB-2216] Persistent Schema Management (apache#4732) [IOTDB-2876] Definition of common thrift struct (apache#5471) # Conflicts: # server/src/main/java/org/apache/iotdb/db/mpp/common/DataRegion.java # server/src/main/java/org/apache/iotdb/db/mpp/sql/planner/LogicalPlanner.java # server/src/test/java/org/apache/iotdb/db/mpp/sql/plan/DistributionPlannerTest.java
Updates of ConfigNode: