kafka/system_test/embedded_consumer
Neha Narkhede fa09aacdbd KAFKA-141 Check and make sure that the files that have been donated have been updated to reflect the new ASF copyright;patched by nehanarkhede; reviewd by jjkoshy
git-svn-id: https://svn.apache.org/repos/asf/incubator/kafka/trunk@1180185 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 19:51:28 +00:00
..
bin KAFKA-141 Check and make sure that the files that have been donated have been updated to reflect the new ASF copyright;patched by nehanarkhede; reviewd by jjkoshy 2011-10-07 19:51:28 +00:00
config KAFKA-141 Check and make sure that the files that have been donated have been updated to reflect the new ASF copyright;patched by nehanarkhede; reviewd by jjkoshy 2011-10-07 19:51:28 +00:00
README auto-discovery of topics for mirroring; patched by Joel; reviewed by Jun; KAFKA-74 2011-08-10 22:32:23 +00:00
expected.out Initial checkin of Kafka to Apache SVN. This corresponds to 709afe4ec7 except that git specific files have been removed and code has been put into trunk/branches/site/etc. This is just a copy of master, branches and history are not being converted since we can't find a good tool for it. 2011-08-01 23:41:24 +00:00

README

This test replicates messages from 3 kafka brokers to 2 other kafka brokers
using the embedded consumer.  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

The expected output is given in bin/expected.out. There is only 1 thing that's
important.
1. The output should have a line "test passed".

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.

If you are making any changes that may affect the embedded consumer, it is a
good idea to run the test in a loop. E.g.:

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

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