mirror of
https://github.com/pgsty/minio.git
synced 2026-08-09 15:53:28 +03:00
objectLayer: Check for format.json in a wrapped disk. (#3311)
This is needed to validate if the `format.json` indeed exists when a fresh node is brought online. This wrapped implementation also connects to the remote node by attempting a re-login. Subsequently after a successful connect `format.json` is validated as well. Fixes #3207
This commit is contained in:
@@ -65,7 +65,7 @@ func TestUpdateUploadJSON(t *testing.T) {
|
||||
|
||||
// make some disks faulty to simulate a failure.
|
||||
for i := range xl.storageDisks[:9] {
|
||||
xl.storageDisks[i] = newNaughtyDisk(xl.storageDisks[i].(*posix), nil, errFaultyDisk)
|
||||
xl.storageDisks[i] = newNaughtyDisk(xl.storageDisks[i].(*retryStorage), nil, errFaultyDisk)
|
||||
}
|
||||
|
||||
testErrVal := xl.updateUploadJSON(bucket, object, "222abc", time.Now().UTC(), false)
|
||||
|
||||
Reference in New Issue
Block a user