fix: regression from range GET proxy on replicated buckets #14345 (#14532)

Fixes: #14531
This commit is contained in:
Poorna 2022-03-11 15:56:49 -08:00 committed by GitHub
parent 47d4fabb58
commit f8d6eaaa96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -703,5 +703,6 @@ func isErrMethodNotAllowed(err error) bool {
}
func isErrInvalidRange(err error) bool {
return errors.As(err, &errInvalidRange)
_, ok := err.(InvalidRange)
return ok
}

View File

@ -173,6 +173,17 @@ if [ $? -ne 0 ]; then
exit_1;
fi
err_minio2=$(./mc stat minio2/newbucket/xxx --json | jq -r .error.cause.message)
if [ $? -ne 0 ]; then
echo "expecting object to be missing. exiting.."
exit_1;
fi
if [ "${err_minio2}" != "Object does not exist" ]; then
echo "expected to see Object does not exist error, exiting..."
exit_1;
fi
./mc cp README.md minio2/newbucket/
sleep 5