Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 754 for retryOn (0.28 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/filters/waitgroup.go

    			// this means 'WithRetryAfter' has started sending Retry-After response.
    			// we are going to exempt the same set of requests that WithRetryAfter are
    			// exempting from being rejected with a Retry-After response.
    			if isRequestExemptFn(req) {
    				handler.ServeHTTP(w, req)
    				return
    			}
    
    			// When apiserver is shutting down, signal clients to retry
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jan 10 21:18:55 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. pkg/istio-agent/health/health_check_test.go

    			}
    			cont <- struct{}{}
    			eventNum.Inc()
    		}, quitChan)
    		retry.UntilSuccessOrFail(t, func() error {
    			if int(eventNum.Load()) != len(expectedTCPEvents) {
    				return fmt.Errorf("waiting for %v events", len(expectedTCPEvents)-int(eventNum.Load()))
    			}
    			return nil
    		}, retry.Delay(time.Millisecond*10), retry.Timeout(time.Second))
    		close(quitChan)
    	})
    	t.Run("http", func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 09 16:50:11 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  3. tests/integration/telemetry/tracing/zipkin/client_tracing_test.go

    						}
    						if !tracing.VerifyEchoTraces(ctx, appNsInst.Name(), cluster.Name(), traces) {
    							return errors.New("cannot find expected traces")
    						}
    						return nil
    					}, retry.Delay(3*time.Second), retry.Timeout(80*time.Second))
    				})
    
    			}
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. tests/integration/pilot/analysis/analysis_test.go

      hosts:
      - reviews
      http:
      - route:
        - destination: 
            host: reviews
    `).ApplyOrFail(t)
    			// Status should report error
    			retry.UntilSuccessOrFail(t, func() error {
    				return expectVirtualServiceStatus(t, ns, true)
    			}, retry.Timeout(time.Minute*5))
    			// Apply config to make this not invalid
    			t.ConfigIstio().YAML(ns.Name(), `
    apiVersion: networking.istio.io/v1alpha3
    kind: Gateway
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. tests/integration/ambient/waypoint_test.go

    					}
    				}
    				return nil
    			}, retry.Timeout(15*time.Second), retry.BackoffDelay(time.Millisecond*100))
    
    			// delete all waypoints in namespace, so w3 should be deleted
    			istioctl.NewOrFail(t, t, istioctl.Config{}).InvokeOrFail(t, []string{
    				"waypoint",
    				"-n",
    				nsConfig.Name(),
    				"delete",
    				"--all",
    			})
    			retry.UntilSuccessOrFail(t, func() error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/filters/with_retry_after.go

    	TearDownConnection bool
    
    	// Message describes why Retry-After response has been sent by the server
    	Message string
    }
    
    // shouldRespondWithRetryAfterFunc returns true if the requests should
    // be rejected with a Retry-After response once certain conditions are met.
    // The retryAfterParams returned contains instructions on how to
    // construct the Retry-After response.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 31 14:10:46 UTC 2021
    - 4.9K bytes
    - Viewed (0)
  7. tests/integration/pilot/ingress_test.go

    								fmt.Sprintf(ingressConfigTemplate, "ingress", "istio-test", c.path, c.path, c.prefixPath)).
    								Apply(); err != nil {
    								t.Fatal(err)
    							}
    							c.call.Retry.Options = []retry.Option{
    								retry.Delay(500 * time.Millisecond),
    								retry.Timeout(time.Minute * 2),
    							}
    							ingr.CallOrFail(t, c.call)
    						})
    					}
    				})
    			}
    
    			defaultIngress := istio.DefaultIngressOrFail(t, t)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  8. cni/test/install_cni.go

    	return nil
    }
    
    // compareConfResult does a string compare of 2 test files.
    func compareConfResult(result, expected string, t *testing.T) {
    	t.Helper()
    	retry.UntilSuccessOrFail(t, func() error {
    		return checkResult(result, expected)
    	}, retry.Delay(time.Millisecond*10), retry.Timeout(time.Second*3))
    }
    
    // checkBinDir verifies the presence/absence of test files.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  9. cmd/batch-rotate_gen.go

    				return
    			}
    		case "Notify":
    			err = z.Notify.DecodeMsg(dc)
    			if err != nil {
    				err = msgp.WrapError(err, "Notify")
    				return
    			}
    		case "Retry":
    			err = z.Retry.DecodeMsg(dc)
    			if err != nil {
    				err = msgp.WrapError(err, "Retry")
    				return
    			}
    		default:
    			err = dc.Skip()
    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    		}
    	}
    	return
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 02 10:51:33 UTC 2023
    - 27.1K bytes
    - Viewed (0)
  10. src/cmd/go/internal/robustio/robustio_flaky.go

    package robustio
    
    import (
    	"errors"
    	"math/rand"
    	"os"
    	"syscall"
    	"time"
    )
    
    const arbitraryTimeout = 2000 * time.Millisecond
    
    // retry retries ephemeral errors from f up to an arbitrary timeout
    // to work around filesystem flakiness on Windows and Darwin.
    func retry(f func() (err error, mayRetry bool)) error {
    	var (
    		bestErr     error
    		lowestErrno syscall.Errno
    		start       time.Time
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.5K bytes
    - Viewed (0)
Back to top