Continue healing other objects even if objects without quorum exist (#5851)

fixes #5815
This commit is contained in:
Krishna Srinivas
2018-04-25 11:56:39 -07:00
committed by Dee Koder
parent 6831177394
commit 9aace6d36d
4 changed files with 21 additions and 30 deletions
+2 -2
View File
@@ -144,7 +144,7 @@ func TestHealObjectXL(t *testing.T) {
// Try healing now, expect to receive errDiskNotFound.
_, 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 err != errXLReadQuorum {
t.Errorf("Expected %v but received %v", errDiskNotFound, err)
if _, ok := err.(InsufficientReadQuorum); !ok {
t.Errorf("Expected %v but received %v", InsufficientWriteQuorum{}, err)
}
}