[ https://issues.apache.org/jira/browse/IGNITE-29339 ]
Anton Vinogradov deleted comment on IGNITE-29339:
-------------------------------------------
was (Author: av):
Видимое упущение. Новая версия получает байты отдельной записи WAL и проверяет,
что может прочитать её поля. При восстановлении Ignite сначала открывает файл
журнала и читает его заголовок. Из постановки неясно, какой тест проверяет этот
шаг.
Предложение. Проверить, что старая версия пишет запись с известными значениями
в файл WAL, а новая открывает этот же файл штатным способом, читает запись и
сверяет значения. Если это уже проверяется при восстановлении с диска для
нужной пары версий, достаточно сослаться на существующий тест.
> Backward compatibility test for WAL records
> -------------------------------------------
>
> Key: IGNITE-29339
> URL: https://issues.apache.org/jira/browse/IGNITE-29339
> Project: Ignite
> Issue Type: Sub-task
> Reporter: Nikolay Izhikov
> Assignee: Dmitry Werner
> Priority: Major
>
> Backward compatibility (X -> Y): old records are read by new code.
> One test run: X < Y.
> This test is not tied to the RU/RD process. Ignite must support an upgrade on
> the same PDS.
> h3. Scenario
> # Start a node of version X.
> # On the node, create WAL records of all types.
> # Stop node X, start a node of version Y.
> # Pass the records to node Y as {{Map<Integer, byte[]>}}:
> #* {{Integer}} - record type.
> #* {{byte[]}} - the written WAL record.
> # On node Y read each record and check that all fields are identical.
> h3. WAL segment compatibility
> Use version X to write a WAL segment containing a record with known field
> values. Use the standard WAL reader in version Y to open that segment, read
> the record and verify those values. If an existing recovery test covers these
> steps for the same version pair, link to it.
> h3. Coverage requirement
> The test must not rely on a manually maintained list of WAL records. It must
> either gather all of them automatically (from {{WALRecord.RecordType}}), or
> explicitly fail as soon as a new one is added that the test does not cover.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)