Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: add data cache clean in gremlin_test.sh #823

Merged
merged 1 commit into from
Sep 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions interactive_engine/src/gaia-adaptor/gremlin_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ cd ${base_dir}/../.. && mvn clean install -DskipTests -Pv2
cd ./distribution/target/ && tar xvzf maxgraph.tar.gz && cd maxgraph

# start server
current_dir=$(pwd)
sed -e "s@LOG4RS_CONFIG@${current_dir}/conf/log4rs.yml@g" \
maxgraph_dir=$(pwd)
sed -e "s@LOG4RS_CONFIG@${maxgraph_dir}/conf/log4rs.yml@g" \
conf/config.template > /tmp/max_node_gaia.config
LOG_NAME=maxnode MAXGRAPH_CONF_FILE=/tmp/max_node_gaia.config ./bin/store_ctl.sh max_node_gaia &
sleep 20
Expand All @@ -16,6 +16,8 @@ echo "localhost:12312" > ${base_dir}/src/test/resources/graph.endpoint
cd ${base_dir} && mvn test
exit_code=$?
ps -ef | grep "com.alibaba.graphscope.gaia.MaxNode" | grep -v grep | awk '{print $2}' | xargs kill -9
# clean data
rm -fr ${maxgraph_dir}/data || true
if [ $exit_code -ne 0 ]; then
echo "gaia_on_maxgraph_store gremlin test fail"
exit 1
Expand Down