[ 
https://issues.apache.org/jira/browse/IGNITE-29338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18153588#comment-18153588
 ] 

Anton Vinogradov commented on IGNITE-29338:
-------------------------------------------

Видимое упущение. Постановка требует охватить все DTO, но разрешает собрать их 
список по аргументам команд. При таком поиске тест может пропустить объекты, 
которые команда возвращает в ответе. Например, у SystemViewCommand аргумент — 
SystemViewCommandArg, а результат — SystemViewTaskResult. Оба класса относятся 
к DTO.

Предложение. В разделах Scenario и Coverage requirement убрать обход одних 
аргументов команд как достаточный способ найти все DTO. Поиск должен охватывать 
все конкретные классы IgniteDataTransferObject в проверяемых модулях, включая 
результаты команд.

> 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 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.



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

Reply via email to