AMashenkov commented on PR #6079: URL: https://github.com/apache/ignite-3/pull/6079#issuecomment-2999669618
We need ability to save configuration classes metadata to a snapshot file, then validate current configuration against previous snapshots. The general idea is to create a serializable structure, which is intermediate representation of configuration tree, and extendable way to validate these structure. In the PR, * this structure is represented by ConfigNode. * ConfigNodeSerializer implements simple serialization protocol. * ConfigurationSnapshotManager provides helper method to save\restore snapshot files. * ConfigurationTreeComparator implements naive validation logic using visitor pattern and ConfigShuttle interface. * ConfigurationTreeScanner is the main class in the PR that implements logic for building ConfigNode structure, and aware of configuration extensions (more complex features is not covered). * The test class contains 2 tests: first one for validating serializer/deserializer, and another one to validate a snapshot. * The main method in test class just generates a new snapshot file from the current configuration. -- 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. To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org