Skip to content

Commit

Permalink
Add Logic to Wait for Killing Old Solr (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
xusine authored Feb 14, 2023
1 parent f753465 commit da0b38f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion benchmarks/web-search/server/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ $SOLR_HOME/bin/solr start -force -cloud -p $SOLR_PORT -s $SOLR_CORE_DIR -m $SERV
$SOLR_HOME/bin/solr status
$SOLR_HOME/bin/solr create_collection -force -c cloudsuite_web_search -d cloudsuite_web_search -shards $NUM_SERVERS -p $SOLR_PORT

kill -9 $(pgrep java) $(pgrep java)
kill -9 $(pgrep java)

# Wait for the process to finish.
while kill -0 $(pgrep java); do
sleep 1
done

cd $SOLR_CORE_DIR/cloudsuite_web_search*
rm -rf data
Expand Down

0 comments on commit da0b38f

Please sign in to comment.