forked from minio/minio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
attempt to real resolve when there is a quorum failure on reads (mini…
- Loading branch information
1 parent
73a6a60
commit 507f993
Showing
28 changed files
with
595 additions
and
49 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
Binary file added
BIN
+210 KB
buildscripts/cicd-corpus/disk1/bucket/testobj/2b4f7e41-df82-4a5e-a3c1-8df87f83332f/part.1
Binary file not shown.
Binary file added
BIN
+210 KB
buildscripts/cicd-corpus/disk2/bucket/testobj/2b4f7e41-df82-4a5e-a3c1-8df87f83332f/part.1
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+210 KB
buildscripts/cicd-corpus/disk3/bucket/testobj/2b4f7e41-df82-4a5e-a3c1-8df87f83332f/part.1
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+210 KB
buildscripts/cicd-corpus/disk4/bucket/testobj/2b4f7e41-df82-4a5e-a3c1-8df87f83332f/part.1
Binary file not shown.
Binary file added
BIN
+210 KB
buildscripts/cicd-corpus/disk4/bucket/testobj/a599bd9e-69fe-49b7-b6bf-fe53021039d5/part.1
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+210 KB
buildscripts/cicd-corpus/disk5/bucket/testobj/2b4f7e41-df82-4a5e-a3c1-8df87f83332f/part.1
Binary file not shown.
Binary file added
BIN
+210 KB
buildscripts/cicd-corpus/disk5/bucket/testobj/a599bd9e-69fe-49b7-b6bf-fe53021039d5/part.1
Binary file not shown.
Binary file not shown.
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,72 @@ | ||
#!/bin/bash -e | ||
|
||
set -E | ||
set -o pipefail | ||
set -x | ||
|
||
WORK_DIR="$PWD/.verify-$RANDOM" | ||
MINIO_CONFIG_DIR="$WORK_DIR/.minio" | ||
MINIO=( "$PWD/minio" --config-dir "$MINIO_CONFIG_DIR" server ) | ||
|
||
if [ ! -x "$PWD/minio" ]; then | ||
echo "minio executable binary not found in current directory" | ||
exit 1 | ||
fi | ||
|
||
function start_minio_5drive() { | ||
start_port=$1 | ||
|
||
export MINIO_ROOT_USER=minio | ||
export MINIO_ROOT_PASSWORD=minio123 | ||
export MC_HOST_minio="http://minio:[email protected]:${start_port}/" | ||
unset MINIO_KMS_AUTO_ENCRYPTION # do not auto-encrypt objects | ||
export MINIO_CI_CD=1 | ||
|
||
MC_BUILD_DIR="mc-$RANDOM" | ||
if ! git clone --quiet https://github.com/minio/mc "$MC_BUILD_DIR"; then | ||
echo "failed to download https://github.com/minio/mc" | ||
purge "${MC_BUILD_DIR}" | ||
exit 1 | ||
fi | ||
|
||
(cd "${MC_BUILD_DIR}" && go build -o "$WORK_DIR/mc") | ||
|
||
# remove mc source. | ||
purge "${MC_BUILD_DIR}" | ||
|
||
"${WORK_DIR}/mc" cp --quiet -r "buildscripts/cicd-corpus/" "${WORK_DIR}/cicd-corpus/" | ||
|
||
"${MINIO[@]}" --address ":$start_port" "${WORK_DIR}/cicd-corpus/disk{1...5}" > "${WORK_DIR}/server1.log" 2>&1 & | ||
pid=$! | ||
disown $pid | ||
sleep 30 | ||
|
||
if ! ps -p ${pid} 1>&2 >/dev/null; then | ||
echo "server1 log:" | ||
cat "${WORK_DIR}/server1.log" | ||
echo "FAILED" | ||
purge "$WORK_DIR" | ||
exit 1 | ||
fi | ||
|
||
"${WORK_DIR}/mc" stat minio/bucket/testobj | ||
|
||
pkill minio | ||
sleep 3 | ||
} | ||
|
||
function main() { | ||
start_port=$(shuf -i 10000-65000 -n 1) | ||
|
||
start_minio_5drive ${start_port} | ||
} | ||
|
||
function purge() | ||
{ | ||
rm -rf "$1" | ||
} | ||
|
||
( main "$@" ) | ||
rv=$? | ||
purge "$WORK_DIR" | ||
exit "$rv" |
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 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
Oops, something went wrong.