Skip to content

Commit

Permalink
fix run.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Jun 16, 2023
1 parent 16511ee commit f4f5d1d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ jobs:
path: |
/tmp/ceresdb-stdout.log
recover-test:
name: recover-test
recovery-test:
name: recovery-test
runs-on: ubuntu-latest
timeout-minutes: 120
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ run-prom:
cd prom && ./run-tests.sh

run-recovery: clean build-ceresdb kill-old-process
cd recovery && sh ./run.sh && sh ./run.sh shard_based
cd recovery && ./run.sh && ./run.sh shard_based
8 changes: 5 additions & 3 deletions integration_tests/recovery/run.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#!/usr/bin/env bash

# for compatibility in macos
set -e

ROOT=`pwd`
# For compatibility in macos, so convert to milliseconds by adding 3 zeros.
NOW=`date +%s000`
BINARY_PATH=${ROOT}/../../target/debug/ceresdb-server
SERVER_HTTP_ENDPOINT=127.0.0.1:5440

CONFIG_FILE=${ROOT}/../../docs/minimal.toml
if [[ ${1} == "shard_based" ]]; then
if [ ${1} == 'shard_based' ]; then
CONFIG_FILE=${ROOT}/../config/shard-based-recovery.toml
fi

Expand All @@ -25,7 +27,7 @@ python3 ./check.py -ts ${NOW}

echo "Flush, restart and check..."
curl -XPOST ${SERVER_HTTP_ENDPOINT}/debug/flush_memtable
echo "\nflush finish..."
echo "\nFlush finish..."
killall ceresdb-server | true
nohup ${BINARY_PATH} --config ${CONFIG_FILE} &
sleep 10
Expand Down

0 comments on commit f4f5d1d

Please sign in to comment.