[
https://issues.apache.org/jira/browse/IGNITE-24563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maksim Zhuravkov reassigned IGNITE-24563:
-----------------------------------------
Assignee: Maksim Zhuravkov
> Sql. Add tests to ensure catalog object serialization backward compatibility
> ----------------------------------------------------------------------------
>
> Key: IGNITE-24563
> URL: https://issues.apache.org/jira/browse/IGNITE-24563
> Project: Ignite
> Issue Type: Improvement
> Components: sql
> Affects Versions: 3.0
> Reporter: Pavel Pereslegin
> Assignee: Maksim Zhuravkov
> Priority: Major
> Labels: ignite-3
> Fix For: 3.1
>
>
> We need to add tests to ensure that we can correctly deserialize catalog
> objects in AI 3.1 from a snapshot created in AI 3.0.
> Suggestion,
> Create generator which will generate two root entries:
> 1. SnapshotEntry that includes all possible descriptors.
> 2. VersionedUpdate that includes all possible update entries with all
> possible descriptors.
> Serialize resulted SnapshotEntry into a byte array.
> Serialize resulted VersionedUpdate into a byte array.
> Run such generator on AI 3.0.0 and get two binaries snapshot-entry.bin and
> versioned-update.bin.
> These snapshots must be placed into new resources folder in catalog module.
> For example:
> compatibility/ai-3.0.0/snapshot-entry.bin
> compatibility/ai-3.0.0/versioned-update.bin
> Test 1
> Ensure that we able to deserialize all objects from snapshots. Verify objects
> contents with objects from generator.
> Test 2
> Run generator on current code base and serialize all objects with version=1,
> result byte array must equal to snapshot data.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)