morningman opened a new pull request #2571: [Tag system] Introduce 
ReplicaAllocation and Backend TagSet
URL: https://github.com/apache/incubator-doris/pull/2571
 
 
   This CL introduces the `ReplicaAllocation` class.
   `ReplicaAllocation` is used to identify the distribution information of the 
replica, and the
    distribution information is represented by a set of tags.
   `ReplicaAllocation` is stored in `PartitionInfo` and replaces the previous 
`idToReplicationNum`
   object. This conversion operation is performed when the FE replays the 
metadata.
   
   At the same time, the `Backend` object will inherit from the `Resource` 
abstract class and
   start to have the `TagSet` attribute. The `TagSet` attribute is currently 
generated by the cluster
    name of the Backend. This conversion operation is also performed when the 
FE replays the
    metadata.
   
   To maintain compatibility and minimize the impact on existing metadata. We 
currently retain all
    cluster information. The new `ReplicaAllocation` and `TagSet` classes are 
only converted and
    stored.
   
   We will start using `ReplicaAllocation` and `TagSet` in the next commit.
   
   I added a proc `"/ tags"` to show all tags and the corresponding resource 
ids.
   I also added an http action `/metacheck?type=replica_allocation` to check if 
the 
   `ReplicaAllocation` and `TagSet` were converted correctly after the upgrade.
   
   ISSUE #1723 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to