Anton Vinogradov created IGNITE-29386:
-----------------------------------------
Summary: WAL compatibility test: check null values and the
serializer version of X
Key: IGNITE-29386
URL: https://issues.apache.org/jira/browse/IGNITE-29386
Project: Ignite
Issue Type: Sub-task
Reporter: Anton Vinogradov
The WAL compatibility test (IGNITE-29339) does not check some reader branches
that production uses.
# The sample generator never sets null: a collection has one element, a boolean
is always true. So the test never reads a removal (a null value) or an atomic
update (a null {{nearXidVer}}, see {{GridCacheMapEntry}}). Add data records
with a removal and with no {{nearXidVer}}, or a second pass of the generator
with null in the fields that allow it.
# The test writes the samples with the serializer version 1 for
{{HEADER_RECORD}} and 2 for other records. Once a release writes WAL with
version 3, the test makes that release write version 2 and does not check the
format the release really writes. Take the version that the WAL manager of X
uses at run time, export it with the samples, and read them on Y with the same
version. {{LATEST_SERIALIZER_VERSION}} does not fit: the compiler puts the
value of the current version into the test code.
Done when the test reads a removal, an atomic update and the samples written
with the serializer version that X uses.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)