Skip to content

Commit

Permalink
[hotfix] [test] Also trap INT signal in Kafka end-to-end test
Browse files Browse the repository at this point in the history
This allows the test to perform the cleanup procedure (as well as
printing any error logs) if an interruption occurred while waiting for
the test data to be written to Kafka, therefore increasing visibility of
reasons to why the test was stalling.

This closes apache#5568.
  • Loading branch information
tzulitai committed Feb 26, 2018
1 parent 246507a commit 2886a41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test-infra/end-to-end-test/test_streaming_kafka010.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function kafka_cleanup {
# make sure to run regular cleanup as well
cleanup
}
trap kafka_cleanup INT
trap kafka_cleanup EXIT

# zookeeper outputs the "Node does not exist" bit to stderr
Expand Down

0 comments on commit 2886a41

Please sign in to comment.