You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This page descibes hits for developing and researching failures of Apache Ignite tests 

Test compatibility with older versions

Ignite test has build in Framework to test compatibilty. This framework provides an opportunity to start working with Ignite instances of previously released versions.


The entire module is built on top of the Ignite Testing Framework, especially on the MiltiJVM-mode classes. There is a class IgniteCompatibilityAbstractTest that provides methods to start Ignite nodes with versions which have been previously released in the Maven repository in separate JVM and allows them to join topology.

Framework looking for artifacts of a specific version in the Maven local repository, if they don’t exist there, they will be downloaded and stored via Maven.

The main implemented API:

startGrid(name, version, configurationClosure);
startGrid(name, version, configurationClosure, postStartupClosure);

You can simply specify a version of Ignite, which you want to start, define the configuration in the configurationClosure and set the actions on the started node in the postStartupClosure.

It’s very easy to use it for writing unit tests, here is a simple example which demonstrates the main functional.

 

  • No labels