GitHub user shanthoosh opened a pull request:
https://github.com/apache/samza/pull/554
SAMZA-1748: Standalone failure tests.
In the standalone model, a processor can leave and join the group at any
point in time. This processor reshuffle is referred to as rebalancing which
results in task(work) redistribution amongst other available, live processors
in the group.
Processor rebalancing in existing standalone integration tests(junit tests)
is accomplished through clean shutdown of the processors. However, in real
production scenarios, processor rebalancing is triggered through unclean
shutdown and full garbage collection(GC) of the processors.
As a part of this JIRA, a failure test suite covering these production like
scenarios will be added.
Failure test suite will be built using the zopkio test framework and will
cover the following test cases:
1. Force killing the leader processor of the group.
2. Force killing a single follower in the group.
3. Force killing multiple followers in the group.
4. Force killing the leader and a follower in the group.
5. Suspending and resuming the leader of the group.
Since existing standalone integration tests cover event
consumption/production after a rebalancing phase, these new tests will just
test the coordination. We'll iterate on this initial suite and add tests
whenever necessary.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/shanthoosh/samza standalone_failure_tests
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/samza/pull/554.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 #554
----
commit 824552f6db27f1f3eeb2a15788be38308fb1a4bc
Author: Shanthoosh Venkataraman <santhoshvenkat1988@...>
Date: 2018-06-09T23:51:47Z
Standalone failure tests.
----
---