Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoucheng361 committed Jan 6, 2025
1 parent 94ec452 commit b1f6659
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions .github/scripts/command/load_dump_bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ test_dump_load_in_binary(){
do_dump_load(){
options=$@
./juicefs dump $META_URL dump.json $options --threads=50
umount_jfs /tmp/jfs2 $META_URL2
python3 .github/scripts/flush_meta.py $META_URL2
# python3 .github/scripts/flush_meta.py $META_URL2
create_database $META_URL2
if [[ "$options" == *"--binary"* ]]; then
./juicefs load $META_URL2 dump.json $options
Expand All @@ -69,11 +68,11 @@ do_dump_load(){
exit 1
fi
fi

./juicefs rmr /tmp/jfs2/bigdir
ls /tmp/jfs2/bigdir && echo "<FATAL>: ls should fail" && exit 1 || true
./juicefs rmr /tmp/jfs2/smalldir
ls /tmp/jfs2/smalldir && echo "<FATAL>: ls should fail" && exit 1 || true
umount_jfs /tmp/jfs2 $META_URL2
./juicefs status $META_URL2 && UUID=$(./juicefs status $META_URL2 | grep UUID | cut -d '"' -f 4)
./juicefs destroy --yes $META_URL2 $UUID
}


Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def flush_meta(meta_url:str):
if protocol == 'redis':
run_cmd(f'redis-cli -h {host} -p {port} -n {db} flushdb')
elif protocol == 'tikv':
run_cmd(f'echo "delall --db {db} --yes" |tcli -pd {host}:{port}')
run_cmd(f'echo "delp {db} --yes" |tcli -pd {host}:{port}')
else:
raise Exception(f'{protocol} not supported')
print(f'flush {protocol}://{host}:{port}/{db} succeed')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/load.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
if [ "${{github.event_name}}" == "schedule" ] || [ "${{github.event_name}}" == "workflow_dispatch" ]; then
echo 'meta_matrix=["sqlite3", "redis", "mysql", "tikv", "tidb", "postgres", "mariadb", "fdb"]' >> $GITHUB_OUTPUT
else
echo 'meta_matrix=["tikv"]' >> $GITHUB_OUTPUT
echo 'meta_matrix=["redis", "tikv", "mysql", "fdb"]' >> $GITHUB_OUTPUT
fi
outputs:
meta_matrix: ${{ steps.set-matrix.outputs.meta_matrix }}
Expand Down

0 comments on commit b1f6659

Please sign in to comment.