[ 
https://issues.apache.org/jira/browse/KAFKA-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14303708#comment-14303708
 ] 

Gwen Shapira commented on KAFKA-1904:
-------------------------------------

Looking at the logs:

{code}
2015-01-28 13:44:50,604 - INFO - Querying Zookeeper for leader info ... 
(kafka_system_test_utils)
2015-01-28 13:44:50,604 - INFO - executing command [ssh localhost 
"JAVA_HOME=/usr /opt/apache/kafka/trunk/bin/kafka-run-class.sh 
kafka.tools.ZooKeeperMainWrapper  -server localhost:2188 get 
/brokers/topics/test_1/partitions/0/state 2> /dev/null | tail -1"] 
(kafka_system_test_utils)
{}
{code}

1. JAVA_HOME is not set. It should be either set as the environment variable or 
on the json, but the docs don't cover that. 
I think systest should validate that JAVA_HOME is set, and exit if it doesn't 
(instead of guessing based on the location of the java executable)

2. Either zookeeper is down or there's no leader elected. We can't tell because 
the tests never validate if any of the commands were successful (start zk, 
start brokers, create topic,. etc) and never prints errors that may be returned 
by these processes. It should also check if the ports which we intend to use 
for zk and the brokers are actually available and say something if they are not.


> run sanity failed test
> ----------------------
>
>                 Key: KAFKA-1904
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1904
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Joe Stein
>            Priority: Blocker
>             Fix For: 0.8.3
>
>         Attachments: run_sanity.log.gz
>
>
> _test_case_name  :  testcase_1
> _test_class_name  :  ReplicaBasicTest
> arg : bounce_broker  :  true
> arg : broker_type  :  leader
> arg : message_producing_free_time_sec  :  15
> arg : num_iteration  :  2
> arg : num_messages_to_produce_per_producer_call  :  50
> arg : num_partition  :  2
> arg : replica_factor  :  3
> arg : sleep_seconds_between_producer_calls  :  1
> validation_status  : 
>      Test completed  :  FAILED



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to