[ https://issues.apache.org/jira/browse/KAFKA-440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Fung updated KAFKA-440: ---------------------------- Attachment: kafka-440-v7.patch Uploaded kafka-440-v7.patch which includes the following changes: 1. cluster_config.json will be checked if the test are being run in localhost. Otherwise, the whole directory of <kafka_home> will be copied (by rsync) over to the individual remote host at the destination of "<hostname>:<kafka_home>" specified in cluster_config.json 2. Updated the string pattern to find the leader election log message. Now the specific testcase will fail and gets recorded if a leader cannot be found. Then the framework will move on to the next testcase. =========== Known Issues: =========== 1. In system_test/replication_testsuite/testcase_1/testcase_1_properties.json, "broker-list" has to be manually updated if the testing is to be run in remote hosts. Otherwise, test will not run properly. 2. Sometimes, the running processes may not be terminated properly by the script. This will be fixed soon. > Create a regression test framework for distributed environment testing > ---------------------------------------------------------------------- > > Key: KAFKA-440 > URL: https://issues.apache.org/jira/browse/KAFKA-440 > Project: Kafka > Issue Type: Task > Reporter: John Fung > Assignee: John Fung > Labels: replication-testing > Fix For: 0.8 > > Attachments: kafka-440-v1.patch, kafka-440-v2.patch, > kafka-440-v3.patch, kafka-440-v5.patch, kafka-440-v6.patch, kafka-440-v7.patch > > > Initial requirements: > 1. The whole test framework is preferably coded in Python (a common scripting > language which has well supported features) > 2. Test framework driver should be generic (distributed environment can be > local host) > 3. Test framework related configurations are defined in JSON format > 4. Test environment, suite, case definitions may be defined in the following > levels: > 4-a entity_id is used as a key for looking up related config from different > levels > 4-b Cluster level defines: entity_id, hostname, kafka_home, java_home, ... > 4-c Test suite / case level defines: > 4-c-1 zookeeper: entity_id, clientPort, dataDir, log_filename, > config_filename > 4-c-2 broker: entity_id, port, log.file.size, log.dir, log_filename, > config_filename > 4-c-3 producer: entity_id, topic, threads, compression-codec, > message-size, log_filename, config_filename -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira