Return 503 instead of 404 if more than half of disks are not found (#6207)

Fixes #6163
This commit is contained in:
kannappanr
2018-07-31 00:23:29 -07:00
committed by Harshavardhana
parent df88421087
commit 264cc4020f
10 changed files with 39 additions and 25 deletions
+1 -1
View File
@@ -145,6 +145,6 @@ func TestHealObjectXL(t *testing.T) {
_, err = obj.HealObject(context.Background(), bucket, object, false)
// since majority of xl.jsons are not available, object quorum can't be read properly and error will be errXLReadQuorum
if _, ok := err.(InsufficientReadQuorum); !ok {
t.Errorf("Expected %v but received %v", InsufficientWriteQuorum{}, err)
t.Errorf("Expected %v but received %v", InsufficientReadQuorum{}, err)
}
}