File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -746,10 +746,17 @@ func isCSIFinalError(err error) bool {
746746 case codes .Canceled , // gRPC: Client Application cancelled the request
747747 codes .DeadlineExceeded , // gRPC: Timeout
748748 codes .Unavailable , // gRPC: Server shutting down, TCP connection broken - previous CreateSnapshot() may be still in progress.
749- codes .ResourceExhausted , // gRPC: Server temporarily out of resources - previous CreateSnapshot() may be still in progress.
750749 codes .Aborted : // CSI: Operation pending for Snapshot
751750 return false
752751 }
752+ // Note: codes.ResourceExhausted is treated as a final error.
753+ // gRPC: Server out of resources.
754+ // However, it also could be from the transport layer for "message size exceeded".
755+ // Cannot be decided properly here and needs to be resolved in the spec
756+ // https://github.com/container-storage-interface/spec/issues/419.
757+ // What we assume here for now is that message size limits are large enough that
758+ // the error really comes from the CSI driver.
759+
753760 // All other errors mean that creating snapshot either did not
754761 // even start or failed. It is for sure not in progress.
755762 return true
You can’t perform that action at this time.
0 commit comments