- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for FromError (0.12 sec)
-
pkg/volume/csi/expander.go
return false, failedConditionErr } return false, fmt.Errorf("Expander.NodeExpand failed to expand the volume : %w", err) } return true, nil } func inUseError(err error) bool { st, ok := status.FromError(err) if !ok { // not a grpc error return false } // if this is a failed precondition error then that means driver does not support expansion // of in-use volumes
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 31 17:23:56 UTC 2024 - 4.6K bytes - Viewed (0) -
pilot/pkg/grpc/grpc.go
// things are operating normally. This is basically capturing when the client disconnects. func IsExpectedGRPCError(err error) bool { if err == io.EOF { return true } if s, ok := status.FromError(err); ok { if s.Code() == codes.Canceled || s.Code() == codes.DeadlineExceeded { return true } if s.Code() == codes.Unavailable && containsExpectedMessage(s.Message()) { return true } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Feb 17 04:27:50 UTC 2024 - 4.2K bytes - Viewed (0) -
pilot/pkg/xds/monitoring.go
if f { t.RecordInt(int64(cnt)) } else { pushTriggers.With(typeTag.Value(string(r))).Increment() } } } func isUnexpectedError(err error) bool { s, ok := status.FromError(err) // Unavailable or canceled code will be sent when a connection is closing down. This is very normal, // due to the XDS connection being dropped every 30 minutes, or a pod shutting down.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 00:26:45 UTC 2024 - 6.7K bytes - Viewed (0) -
pkg/probe/grpc/grpc.go
resp, err := client.Check(metadata.NewOutgoingContext(ctx, make(metadata.MD)), &grpchealth.HealthCheckRequest{ Service: service, }) if err != nil { stat, ok := status.FromError(err) if ok { switch stat.Code() { case codes.Unimplemented: klog.V(4).ErrorS(err, "server does not implement the grpc health protocol (grpc.health.v1.Health)", "addr", addr, "service", service)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 25 19:28:03 UTC 2023 - 4K bytes - Viewed (0) -
pkg/volume/util/metrics.go
} func getErrorCode(err error) string { if err == nil { return codes.OK.String() } st, ok := status.FromError(err) if !ok { // This is not gRPC error. The operation must have failed before gRPC // method was called, otherwise we would get gRPC error. return "unknown-non-grpc" } return st.Code().String()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 23 23:05:31 UTC 2022 - 5.8K bytes - Viewed (0)