anton-vinogradov opened a new pull request, #13903: URL: https://github.com/apache/ignite/pull/13903
Adds a compatibility test that checks that a released version and the current version distribute data in the same way. If they differ, nodes of different versions in one cluster look for the same data on different nodes during a rolling upgrade. - A node of the released version (2.18.0 and later) runs in a separate JVM, calculates the distribution and writes it to a file. The current version calculates the same distribution and compares it entry by entry. - Partitions of keys: `Integer`, `Long`, `String`, `UUID`, `AffinityKey`, a POJO, a POJO with an `@AffinityKeyMapped` field, a `BinaryObject` and a `BinaryObject` whose affinity field is set by `CacheKeyConfiguration`, as SQL does for a table with an affinity key. The node calculates them in caches with 1024 and 1000 partitions, because a power of two and other numbers use different formulas. - Primary and backup nodes of each partition: `RendezvousAffinityFunction` with no filter, with `excludeNeighbors`, with `ClusterNodeAttributeAffinityBackupFilter` by data center and zone, with `ClusterNodeAttributeColocatedBackupFilter` and with `MdcAffinityBackupFilter`, for 1 and 3 backups. Both versions get the same 12 nodes with the same consistent IDs and attributes: cell, zone, data center and host. Each cell spans both data centers, so the cell case also covers the MDC cellular setup. - Two more cases: `excludeNeighbors` with more copies than hosts, where the function takes the remaining copies from neighbors, and a replicated cache. - A second test fails when the `org.apache.ignite.cache.affinity` package gets an affinity function or a backup filter that the first test does not check. The test fails and names the entry that differs when the current code is deliberately broken in any of these places: `MdcAffinityBackupFilter`, the binary hash, the affinity field from `CacheKeyConfiguration`, the `excludeNeighbors` pass over neighbors, and the comparison of several attributes in `ClusterNodeAttributeAffinityBackupFilter`. https://issues.apache.org/jira/browse/IGNITE-29342 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
