mirror of
https://github.com/minio/minio.git
synced 2026-11-20 23:06:17 +00:00
Implement an offline mode for a distributed node (#4646)
Implement an offline mode for remote storage to cache the offline status of a node in order to prevent network calls that are bound to fail. After a time interval an attempt will be made to restore the connection and mark the node as online if successful. Fixes #4183
This commit is contained in:
1 parent
1978b9d8f9
commit
98b62cbec8
6 files changed
+227
-125
No files matched your search
@@ -45,11 +45,11 @@ func toStorageErr(err error) error {
|
||||
|
||||
switch err.(type) {
|
||||
case *net.OpError:
|
||||
return errDiskNotFound
|
||||
return errDiskNotFoundFromNetError
|
||||
}
|
||||
|
||||
if err == rpc.ErrShutdown {
|
||||
return errDiskNotFound
|
||||
return errDiskNotFoundFromRPCShutdown
|
||||
}
|
||||
|
||||
switch err.Error() {
|
||||
|
||||
Reference in new issue
Block a user