Hi,
Good point!
We could add a status column, which may contain the following enums:
Up,
Moving to {DataNodeId}
Deleting
Besides, how many slots a region contains may also be helpful:
Status, RegionID, RegionType, Slots, DataNodeID, RPCAddress, RPCPort
There may need to reconsider some concepts about partition:
Schema: series partition -> schema slot
Data: series partition + time partition -> data slot
Thanks,
—————————————————
Jialin Qiao
Apache IoTDB PMC
Eric Pai <[email protected]> 于2022年6月14日周二 17:41写道:
> If one region is under migration, what the output will be? Do we need a
> state/status field?
>
> 在 2022/6/14 17:31,“Jialin Qiao”<[email protected]> 写入:
>
> Hi,
>
> I created an issue to query the region distribution [1].
>
> This could be used in some scenarios:
> (1) To see if the region migration is successful after removing a
> datanode
> (2) To see if the region is well-distributed in datanodes
>
> The query result could contain 5 columns:
>
> RegionID, RegionType, DataNodeID, RPCAddress, RPCPort
>
> Any suggestions?
>
> [1]
> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FIOTDB-3488&data=05%7C01%7C%7Cf33dbe8611d346568c6108da4de8b3fe%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637907959094748610%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=0ah6sTa1PKadQosZ4RnJA6FkInEb08yTW7AGnA9t35M%3D&reserved=0
>
> Thanks,
> —————————————————
> Jialin Qiao
> Apache IoTDB PMC
>
>