add additional logging during server formatting (#9102)

master
Harshavardhana 5 years ago committed by GitHub
parent 52873ac3a3
commit 792ee48d2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      cmd/prepare-storage.go

@ -244,6 +244,10 @@ func connectLoadInitFormats(retryCount int, firstDisk bool, endpoints Endpoints,
if _, ok := formatCriticalErrors[sErr]; ok {
return nil, fmt.Errorf("Disk %s: %w", endpoints[i], sErr)
}
// not critical error but still print the error, nonetheless, which is perhaps unhandled
if sErr != errUnformattedDisk && sErr != errDiskNotFound && retryCount >= 5 {
logger.Info("Unable to read 'format.json' from %s: %v\n", endpoints[i], sErr)
}
}
// Pre-emptively check if one of the formatted disks

Loading…
Cancel
Save