Clean up es data and log folders after ITs

Change the data and log directories to be in /tmp/ls_integrations
(matching the kafka service folder structure), and delete
them in the teardown script.

Fixes #8528
This commit is contained in:
Rob Bavey 2017-10-24 16:54:00 -04:00
parent 915979aaf2
commit 58b1e5c832
2 changed files with 5 additions and 2 deletions

View file

@ -26,7 +26,7 @@ setup_es() {
start_es() {
es_args=$@
$ES_HOME/bin/elasticsearch $es_args -p $ES_HOME/elasticsearch.pid > /tmp/elasticsearch.log 2>/dev/null &
$ES_HOME/bin/elasticsearch -Epath.data=/tmp/ls_integration/es-data -Epath.logs=/tmp/ls_integration/es-logs $es_args -p $ES_HOME/elasticsearch.pid > /tmp/elasticsearch.log 2>/dev/null &
count=120
echo "Waiting for elasticsearch to respond..."
while ! curl --silent localhost:9200 && [[ $count -ne 0 ]]; do

View file

@ -12,4 +12,7 @@ stop_es() {
kill -SIGTERM $pid
}
stop_es
stop_es
rm -rf /tmp/ls_integration/es-data
rm -rf /tmp/ls_integration/es-logs