mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 05:00:22 +03:00
Show offline nodes after a fixed number of init retry (#3107)
This commit is contained in:
committed by
Harshavardhana
parent
0f32efb825
commit
8871eb8e1e
@@ -196,9 +196,16 @@ func retryFormattingDisks(firstDisk bool, firstEndpoint string, storageDisks []S
|
||||
defer close(doneCh)
|
||||
|
||||
// Wait on the jitter retry loop.
|
||||
for range newRetryTimer(time.Second, time.Second*30, MaxJitter, doneCh) {
|
||||
for retryCounter := range newRetryTimer(time.Second, time.Second*30, MaxJitter, doneCh) {
|
||||
// Attempt to load all `format.json`.
|
||||
formatConfigs, sErrs := loadAllFormats(storageDisks)
|
||||
if retryCounter > 5 {
|
||||
for i, e := range sErrs {
|
||||
if e == errDiskNotFound {
|
||||
console.Printf("%s still unreachable.\n", storageDisks[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
// Check if this is a XL or distributed XL, anything > 1 is considered XL backend.
|
||||
if len(formatConfigs) > 1 {
|
||||
switch prepForInitXL(firstDisk, sErrs, len(storageDisks)) {
|
||||
|
||||
Reference in New Issue
Block a user