[
https://issues.apache.org/jira/browse/IGNITE-29342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anton Vinogradov updated IGNITE-29342:
--------------------------------------
Description:
Full compatibility: the affinity distribution must always be the same in all
versions.
h3. Scenario
# Calculate the distribution on version X for all supported affinity
configurations:
#* Rendezvous
#* Rendezvous + Cellular filter
#* Rendezvous + MDC Cellular filter
# Repeat the calculation on version Y (X < Y) for the same configurations. Use
the same keys, node identities and affinity-relevant node attributes on both
versions.
# For each key, verify that X and Y assign it to the same partition.
# For each partition, verify that X and Y assign the same primary node and the
same backup nodes in the same order.
h3. Guarantee
For each release since 2.18.0 and each affinity configuration that the release
supports, the current version gives the same partition for each key, and the
same primary and backup nodes in the same order for each partition.
* The same nodes let nodes of both versions find data in one place during RU.
* The same partitions also matter for PDS: the data of a key is kept in the
file of its partition, so after a cold upgrade the new version must look for
the key in the same file.
h3. API changes
* A new class or setting. The test fails when no case uses a class of the
affinity package, or when a setting keeps its default value in all cases. The
author adds a case with the version of the next release. Older releases skip
the case, and the comparison starts when the release appears in
{{IgniteReleasedVersion}}.
* A changed distribution of an existing case. The test fails for all releases.
Add the new behavior as a new setting instead. To break compatibility on
purpose, raise the version of the case, so reviewers see the break. RU across
that version works only if the new behavior is enabled after the upgrade
finishes.
* A change of internal classes. The test uses its own implementations of the
public {{ClusterNode}} and {{AffinityFunctionContext}}, so such a change does
not break it on the JVM of a release.
Baseline handling is outside the affinity function. IGNITE-29345 checks it in a
mixed cluster.
was:
Full compatibility: the affinity distribution must always be the same in all
versions.
h3. Scenario
# Calculate the distribution on version X for all supported affinity
configurations:
#* Rendezvous
#* Rendezvous + Cellular filter
#* Rendezvous + MDC Cellular filter
# Repeat the calculation on version Y (X < Y) for the same configurations. Use
the same keys, node identities and affinity-relevant node attributes on both
versions.
# For each key, verify that X and Y assign it to the same partition.
# For each partition, verify that X and Y assign the same primary node and the
same backup nodes in the same order.
> Affinity compatibility test across versions
> -------------------------------------------
>
> Key: IGNITE-29342
> URL: https://issues.apache.org/jira/browse/IGNITE-29342
> Project: Ignite
> Issue Type: Sub-task
> Reporter: Nikolay Izhikov
> Assignee: Anton Vinogradov
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Full compatibility: the affinity distribution must always be the same in all
> versions.
> h3. Scenario
> # Calculate the distribution on version X for all supported affinity
> configurations:
> #* Rendezvous
> #* Rendezvous + Cellular filter
> #* Rendezvous + MDC Cellular filter
> # Repeat the calculation on version Y (X < Y) for the same configurations.
> Use the same keys, node identities and affinity-relevant node attributes on
> both versions.
> # For each key, verify that X and Y assign it to the same partition.
> # For each partition, verify that X and Y assign the same primary node and
> the same backup nodes in the same order.
> h3. Guarantee
> For each release since 2.18.0 and each affinity configuration that the
> release supports, the current version gives the same partition for each key,
> and the same primary and backup nodes in the same order for each partition.
> * The same nodes let nodes of both versions find data in one place during RU.
> * The same partitions also matter for PDS: the data of a key is kept in the
> file of its partition, so after a cold upgrade the new version must look for
> the key in the same file.
> h3. API changes
> * A new class or setting. The test fails when no case uses a class of the
> affinity package, or when a setting keeps its default value in all cases. The
> author adds a case with the version of the next release. Older releases skip
> the case, and the comparison starts when the release appears in
> {{IgniteReleasedVersion}}.
> * A changed distribution of an existing case. The test fails for all
> releases. Add the new behavior as a new setting instead. To break
> compatibility on purpose, raise the version of the case, so reviewers see the
> break. RU across that version works only if the new behavior is enabled after
> the upgrade finishes.
> * A change of internal classes. The test uses its own implementations of the
> public {{ClusterNode}} and {{AffinityFunctionContext}}, so such a change does
> not break it on the JVM of a release.
> Baseline handling is outside the affinity function. IGNITE-29345 checks it in
> a mixed cluster.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)