The invention discloses a
metadata version control and consistency
verification method and
system, and belongs to the technical field of distributed
system metadata management, the method comprises the steps of version tree construction, version query and
backtracking, version merging and conflict
processing, the version tree construction takes an initial
timestamp associated with an initial version of
metadata as a root node of the version tree; whenever the metadata is changed, a unique
timestamp is generated for the changed metadata; carrying out associated storage on the generated
timestamp and the changed metadata; and creating a new node according to the newly generated timestamp, establishing a father-son relationship between the new node and the node of the previous version to form a
branch structure of the version tree, and arranging the nodes in the version tree according to the sequence of the timestamp. According to the method, the
management efficiency of multi-version metadata can be remarkably improved, the
data integrity and consistency are effectively guaranteed, and the method is suitable for
cloud storage system metadata management, cross-platform metadata migration and other scenes.