[ 
https://issues.apache.org/jira/browse/IOTDB-606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17089557#comment-17089557
 ] 

Houliang Qi commented on IOTDB-606:
-----------------------------------

As far as I know, each node contains the following meta data:
 # All storage groups
 # Storage group’s TTL
 # Data authenticationinfo:
 ** All user name and its water mark status
 # Author authenticationinfo:
 ** All user info and its privileges
 ** All role info and its privileges
 # Partition Table

 
 # The 1) and 2) can be solved with a Map<String, Long>, its key is storage 
group, and value is TTL, if TTL is not set, Long.MAX_VALUE is set;
 # 2) 3) and 4) can be solved with Map<String, User> and Map<String, Role>
 # 5) Just use PartitionTable

When do MetaSnapshot, leader serialize the above info to binary and send them 
to follower, follower can deserialize from the binary and apply the snapshot. 

When All mete data are added into the MetaSnapshot, the logs in MetaSnapshot 
can be safely deleted.

> [Distributed] Replace raw logs in MetaSnapshot
> ----------------------------------------------
>
>                 Key: IOTDB-606
>                 URL: https://issues.apache.org/jira/browse/IOTDB-606
>             Project: Apache IoTDB
>          Issue Type: Improvement
>            Reporter: Tian Jiang
>            Priority: Major
>              Labels: cluster, metadata, snapshot
>
> The current MetaSnapshot is using the simplest way, storing the raw committed 
> logs. It would be more efficient to replace the logs with compact structures 
> like the partition table and other objects that will be affected by meta logs.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to