You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Sergey Uttsel (Jira)" <ji...@apache.org> on 2022/12/20 11:26:00 UTC
[jira] [Assigned] (IGNITE-18416) Extend test coverage for DistributionZoneManager
[ https://issues.apache.org/jira/browse/IGNITE-18416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Uttsel reassigned IGNITE-18416:
--------------------------------------
Assignee: Sergey Uttsel
> Extend test coverage for DistributionZoneManager
> ------------------------------------------------
>
> Key: IGNITE-18416
> URL: https://issues.apache.org/jira/browse/IGNITE-18416
> Project: Ignite
> Issue Type: Improvement
> Reporter: Sergey Uttsel
> Assignee: Sergey Uttsel
> Priority: Major
> Labels: ignite-3
>
> Tests for DistributionZoneManager.
> h3. Node restart tests:
> *Test1:*
> Prerequisite:
> # node1 is started.
> # Default zone with scaleUp = 1000.
> Test steps:
> # Start node2. _(Zone timer is started at node1 and node2)._
> # Restart node1.
> # *Assert* that data nodes of default zone is [node1, node2] after node1 is restarted. _(Before timer expiration)_
> *Test2:*
> Prerequisite:
> # node1 and node2 are started.
> # Default zone with scaleUp = 10 and scaleDown = Integer.MAX_VALUE.
> # Data nodes of default zone: [node1, node2].
> Test steps:
> # Start node3 at the time 0.
> # Stop node2 at time 5.
> # *Assert* that at time 10 data nodes of default zone will be changed to [node1, node2, node3].
> # Start node4 at time 30.
> # *Assert* that at time 40 data nodes of default zone will be changed to [node1, node2, node3, node4].
> # Start node2 at time 50. _(So node2 tries to do metaStorage.invoke with a stale dataNodes [node1, node2, node3])_
> # *Assert* that data nodes of default zone is [node1, node2, node3, node4] after node2 is restarted.
> h3. Zone configuration changes
> *Test1:*
> Prerequisite:
> # node1, node2 are started.
> Test steps:
> # Create new zone.
> # *Assert* that data nodes of new zone is [node1, node2]
> *Test2:*
> Prerequisite:
> # node1 are started.
> # Default zone with scaleUp = 1000, scaleDown = 1000.
> # Data nodes of default zone: [node1].
> Test steps:
> # Start node2 at time 0.
> # Change scaleUp to 10 at time 5.
> # *Assert* that data nodes of default zone is changed to [node1, node2] at time 15.
> # Stop node2 at time 15.
> # Change scaleDown to 10 at time 20.
> # *Assert* that data nodes of default zone is changed to [node1] at time 30.
> h3. Data nodes filter
> *Test1:*
> Prerequisite:
> # node1, node2 are started.
> Test steps:
> # Create new zone.
> # *Assert* that data nodes of new zone is [node1, node2]
> *Test2:*
> Prerequisite:
> # node1 are started.
> # zone1 with filter [node2, node3], scaleUp=0, scaleDown=0.
> Test steps:
> # Start node2.
> # *Assert* that data nodes of new zone is [node2].
> # Start node4.
> # *Assert* that data nodes of new zone is [node2, node3].
> # Start node3.
> # *Assert* that data nodes of new zone is [node2, node3].
> # Stop node2.
> # *Assert* that data nodes of new zone is [node3].
> # Stop node3.
> # *Assert* that data nodes of new zone is empty.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)