You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/08/11 19:13:20 UTC
[jira] [Commented] (IGNITE-3678) Test for partition distribution
functionality
[ https://issues.apache.org/jira/browse/IGNITE-3678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15417768#comment-15417768 ]
ASF GitHub Bot commented on IGNITE-3678:
----------------------------------------
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 <pa...@workday.com>
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
----
> Test for partition distribution functionality
> ---------------------------------------------
>
> Key: IGNITE-3678
> URL: https://issues.apache.org/jira/browse/IGNITE-3678
> Project: Ignite
> Issue Type: Test
> Components: cache
> Affects Versions: 1.7
> Reporter: Patrick Peralta
> Assignee: Patrick Peralta
> Fix For: 1.8
>
>
> Create a test that will assert the following conditions in a running cluster while server nodes are (forcibly) killed and restarted:
> * even distribution of partitions
> * safe distribution of partitions (where data will not be lost if a single node is killed) - this means the cache is configured with a backup count >= 1 and partitions are backed up to a different node from the primary
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)