mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
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:
parent
915979aaf2
commit
58b1e5c832
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue