-
Notifications
You must be signed in to change notification settings - Fork 987
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04d46ad
commit b7050cf
Showing
7 changed files
with
91 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash -e | ||
source .github/scripts/common/common.sh | ||
|
||
[[ -z "$META" ]] && META=sqlite3 | ||
source .github/scripts/start_meta_engine.sh | ||
start_meta_engine $META | ||
META_URL=$(get_meta_url $META) | ||
|
||
test_mount_process_exit_on_format() | ||
{ | ||
prepare_test | ||
for i in {1..3}; do | ||
echo "round $i" | ||
./juicefs format $META_URL volume-$i | ||
./juicefs mount -d $META_URL /tmp/myjfs$i_$j --no-usage-report | ||
cd /tmp/myjfs$i_$j | ||
bash -c 'for k in {1..300}; do echo abc>$k; sleep 0.2; done' || true & | ||
cd - | ||
sleep 3 | ||
uuid=$(./juicefs status $META_URL | grep UUID | cut -d '"' -f 4) | ||
./juicefs destroy --force $META_URL $uuid | ||
./juicefs format $META_URL new-volume-$i | ||
sleep 15 | ||
ps -ef | grep juicefs | ||
# TODO: fix the bug and remove the following line | ||
# SEE https://github.com/juicedata/juicefs/issues/4534 | ||
# pidof juicefs && exit 1 | ||
uuid=$(./juicefs status $META_URL | grep UUID | cut -d '"' -f 4) | ||
./juicefs destroy --force $META_URL $uuid | ||
done | ||
} | ||
|
||
|
||
source .github/scripts/common/run_test.sh && run_test $@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.