[ https://issues.apache.org/jira/browse/IGNITE-29338 ]
Anton Vinogradov deleted comment on IGNITE-29338:
-------------------------------------------
was (Author: av):
Видимое упущение. Постановка требует охватить все 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 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)