kafka/system_test/mirror_maker
Jun Rao a40953196e Use uniform convention for naming properties keys; kafka-648; patched by Sriram Subramanian; reviewed by Jun Rao 2013-01-11 16:12:57 -08:00
..
bin extend DumpLogSegments to verify consistency btw data and index; patched by Yang Ye; reviewed by Neha Narkhede and Jun Rao; KAFKA-577 2012-10-29 22:09:43 +00:00
config Use uniform convention for naming properties keys; kafka-648; patched by Sriram Subramanian; reviewed by Jun Rao 2013-01-11 16:12:57 -08:00
README KAFKA-348 merge trunk to branch 1239902:1310937 patch by Joe Stein reviewed by Jun Rao 2012-05-31 01:51:23 +00:00

README

This test replicates messages from two source kafka clusters into one target
kafka cluster using the mirror-maker tool.  At the end, the messages produced
at the source brokers should match that at the target brokers.

To run this test, do
bin/run-test.sh

In the event of failure, by default the brokers and zookeepers remain running
to make it easier to debug the issue - hit Ctrl-C to shut them down. You can
change this behavior by setting the action_on_fail flag in the script to "exit"
or "proceed", in which case a snapshot of all the logs and directories is
placed in the test's base directory.

It is a good idea to run the test in a loop. E.g.:

:>/tmp/mirrormaker_test.log
for i in {1..10}; do echo "run $i"; ./bin/run-test.sh 2>1 >> /tmp/mirrormaker_test.log; done
tail -F /tmp/mirrormaker_test.log

grep -ic passed /tmp/mirrormaker_test.log
grep -ic failed /tmp/mirrormaker_test.log