GitHub user pperalta opened a pull request:
https://github.com/apache/ignite/pull/952 IGNITE-3678: Test for partition distribution This submission includes a test that will assert the even and safe distribution of partitions when server nodes are forcibly killed. Additionally, the following are included: (1) A new `Assertion` interface. This looks similar on the surface to `IgnitePredicate` - however there are two subtle differences: - it returns `void`, not `boolean` - it throws `AssertionError` Since this does not return `boolean`, the caller does not have to check for the result of the assertion; if the assertion fails an exception is thrown which contains the details of the failed assertion. (2) `GridRollingRestartAbstractTest`: a new abstract test class that is extended for tests that require: - multiple JVMs - the first JVM to be a client (i.e. not own any partitions) - the server JVMs to be killed forcibly (not gracefully) while the test executes You can merge this pull request into a Git repository by running: $ git pull https://github.com/pperalta/ignite ignite-3678 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/ignite/pull/952.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #952 ---- commit 9eab905d292c4e951b2f300dca57434d44d11aca Author: Patrick Peralta <[hidden email]> Date: 2016-08-11T18:38:10Z IGNITE-3678: Test for partition distribution This submission includes a test that will assert the even and safe distribution of partitions when server nodes are forcibly killed. Additionally, the following are included: 1. A new Assertion interface. This looks similar on the surface to IgnitePredicate - however there are two subtle differences: (a) it returns void, not boolean (b) it throws AssertionError Since this does not return boolean, the caller does not have to check for the result of the assertion; if the assertion fails an exception is thrown which contains the details of the failed assertion. 2. GridRollingRestartAbstractTest: a new abstract test class that is extended for tests that require: (a) multiple JVMs (b) the first JVM to be a client (i.e. not own any partitions) (c) the server JVMs to be killed forcibly (not gracefully) while the test executes ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at [hidden email] or file a JIRA ticket with INFRA. --- |
Github user pperalta closed the pull request at:
https://github.com/apache/ignite/pull/952 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at [hidden email] or file a JIRA ticket with INFRA. --- |
Free forum by Nabble | Edit this page |