anton-vinogradov commented on PR #13897:
URL: https://github.com/apache/ignite/pull/13897#issuecomment-7414657869

   @wernerdv, here is the plan for this test after the current PR, and what 
each step gives. Each next PR opens after the previous one is merged. No step 
removes the reading of a WAL format that a release has written.
   
   **1. This PR, 
[IGNITE-29339](https://issues.apache.org/jira/browse/IGNITE-29339).** The 
current version Y reads the WAL records that a released version X writes, and 
gets the same field values. Before the merge, RunAll has to pass on the final 
head.
   
   wernerdv/ignite#6 is optional: merge it into this PR or close it. It gives 
three things:
   - No list of record types to maintain. Each record class gets a sample, so 
the test covers a new record class with no edit. An older X no longer fails 
when master starts writing a placeholder type.
   - The test still compares the record type, because two records with the same 
fields may do different things. A planned change of the type passes with an 
entry in `READ_AS`.
   - The test of encrypted records reads them once more without the keys and 
requires other field values. This proves the encryption and does not depend on 
the type numbers of the encrypted formats, which changed in 2.10 and 2.12.
   
   **2. [IGNITE-29384](https://issues.apache.org/jira/browse/IGNITE-29384).** 
It removes `SplitForwardPageRecord`, `MergeRecord` and `InnerReplaceRecord` 
with their serializer code. Their constructors throw in every release from 
2.0.0 to 2.18.0, so no WAL holds these records. Their type numbers stay 
reserved and deprecated. `MASTER_KEY_CHANGE_RECORD` becomes deprecated too: new 
master key changes are written as `MASTER_KEY_CHANGE_RECORD_V2`. The change is 
ready, and I will open the PR once this one is merged.
   
   **3. [IGNITE-29385](https://issues.apache.org/jira/browse/IGNITE-29385).** 
The test stops failing on internal changes that keep the WAL format: a new 
signature of an internal constructor, a renamed private field, or a renamed 
partition state declared in the test. The expected values come from what X 
reads back from its WAL, not from the record object in the memory of X.
   
   **4. [IGNITE-29386](https://issues.apache.org/jira/browse/IGNITE-29386).** 
The test covers the reader branches that the samples miss: removals and atomic 
updates with null values, a segment that X writes with real cache operations, 
and samples written with the serializer version that X really uses.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to