[ 
https://issues.apache.org/jira/browse/IGNITE-29338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anton Vinogradov updated IGNITE-29338:
--------------------------------------
    Description: 
Compatibility in both directions (X <-> Y). When RU mode is enabled, old data 
is read by new code and new data is read by old code.
Two test runs: X > Y, X < Y.

h3. Scenario
# Start a node of version X.
# On node X, create an instance of every concrete subclass of 
{{IgniteDataTransferObject}} in the modules under test. Include both command 
arguments and command results.
# Stop node X, start a node of version Y.
# Pass the messages to node Y as {{Map<Class, T2<byte[], String>>}}:
#* {{Class}} - message type.
#* {{byte[]}} - content written by Java serialization.
#* {{String}} - content in JSON form.
# On node Y read each message with Java serialization and check that all fields 
(up to {{@Since}}, {{@Until}}) are read.

h3. Coverage requirement
The test must not rely on a manually maintained list of DTO classes. It must 
discover all concrete subclasses automatically (for example, by scanning the 
classpath) or fail when a new subclass is missing from coverage. Traversing 
only command arguments in {{IgniteCommandRegistry}} can miss result types such 
as {{SystemViewTaskResult}}.

  was:
Compatibility in both directions (X <-> Y). When RU mode is enabled, old data 
is read by new code and new data is read by old code.
Two test runs: X > Y, X < Y.

h3. Scenario
# Start a node of version X.
# On the node, create all messages extending {{IgniteDataTransferObject}}. They 
can be found by scanning the classpath or by traversing the arguments of the 
commands available from {{IgniteCommandRegistry}}.
# Stop node X, start a node of version Y.
# Pass the messages to node Y as {{Map<Class, T2<byte[], String>>}}:
#* {{Class}} - message type.
#* {{byte[]}} - content written by Java serialization.
#* {{String}} - content in JSON form.
# On node Y read each message with Java serialization and check that all fields 
(up to {{@Since}}, {{@Until}}) are read.

h3. Coverage requirement
The test must not rely on a manually maintained list of 
{{IgniteDataTransferObject}} classes. It must either gather all of them 
automatically (by a classpath scan or from {{IgniteCommandRegistry}}), or 
explicitly fail as soon as a new one is added that the test does not cover.


> RU: compatibility test for IgniteDataTransferObject messages
> ------------------------------------------------------------
>
>                 Key: IGNITE-29338
>                 URL: https://issues.apache.org/jira/browse/IGNITE-29338
>             Project: Ignite
>          Issue Type: Sub-task
>            Reporter: Nikolay Izhikov
>            Assignee: Dmitry Werner
>            Priority: Major
>
> Compatibility in both directions (X <-> Y). When RU mode is enabled, old data 
> is read by new code and new data is read by old code.
> Two test runs: X > Y, X < Y.
> h3. Scenario
> # Start a node of version X.
> # On node X, create an instance of every concrete subclass of 
> {{IgniteDataTransferObject}} in the modules under test. Include both command 
> arguments and command results.
> # Stop node X, start a node of version Y.
> # Pass the messages to node Y as {{Map<Class, T2<byte[], String>>}}:
> #* {{Class}} - message type.
> #* {{byte[]}} - content written by Java serialization.
> #* {{String}} - content in JSON form.
> # On node Y read each message with Java serialization and check that all 
> fields (up to {{@Since}}, {{@Until}}) are read.
> h3. Coverage requirement
> The test must not rely on a manually maintained list of DTO classes. It must 
> discover all concrete subclasses automatically (for example, by scanning the 
> classpath) or fail when a new subclass is missing from coverage. Traversing 
> only command arguments in {{IgniteCommandRegistry}} can miss result types 
> such as {{SystemViewTaskResult}}.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to