Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for retryOn (0.16 sec)

  1. pkg/config/validation/validation_test.go

    		}, valid: false},
    		{name: "invalid policy retryOn", in: &networking.HTTPRetry{
    			Attempts:      10,
    			PerTryTimeout: &durationpb.Duration{Seconds: 2},
    			RetryOn:       "5xx,invalid policy",
    		}, valid: false},
    		{name: "invalid http status retryOn", in: &networking.HTTPRetry{
    			Attempts:      10,
    			PerTryTimeout: &durationpb.Duration{Seconds: 2},
    			RetryOn:       "600,connect-failure",
    		}, valid: false},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  2. pkg/config/validation/validation.go

    	if retries.Attempts == 0 && (retries.PerTryTimeout != nil || retries.RetryOn != "" || retries.RetryRemoteLocalities != nil) {
    		errs = appendErrors(errs, errors.New("http retry policy configured when attempts are set to 0 (disabled)"))
    	}
    
    	if retries.PerTryTimeout != nil {
    		errs = appendErrors(errs, agent.ValidateDuration(retries.PerTryTimeout))
    	}
    	if retries.RetryOn != "" {
    		retryOnPolicies := strings.Split(retries.RetryOn, ",")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  3. tests/integration/pilot/common/routing.go

    				},
    			},
    		},
    		workloadAgnostic: true,
    	})
    	// Retry conditions have been added to just check that config is correct.
    	// Retries are not specifically tested. TODO if we actually test retries, include proxyless
    	t.RunTraffic(TrafficTestCase{
    		name: "retry conditions",
    		config: `
    apiVersion: networking.istio.io/v1alpha3
    kind: VirtualService
    metadata:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
  4. pkg/volume/util/operationexecutor/operation_generator.go

    		// else on the system. Retry if it returns true.
    		deviceOpened, deviceOpenedErr := isDeviceOpened(deviceToDetach, hostutil)
    		if deviceOpenedErr != nil {
    			return volumetypes.NewOperationContext(nil, deviceOpenedErr, migrated)
    		}
    		// The device is still in use elsewhere. Caller will log and retry.
    		if deviceOpened {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CallTest.kt

      @Test
      fun canRetryNormalRequestBody() {
        server.enqueue(
          MockResponse(
            code = 503,
            headers = headersOf("Retry-After", "0"),
            body = "please retry",
          ),
        )
        server.enqueue(
          MockResponse(body = "thank you for retrying"),
        )
        val request =
          Request(
            url = server.url("/"),
            body =
              object : RequestBody() {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  6. src/net/http/transport_test.go

    					t.Errorf("want timeout error; got: %q", nerr)
    					continue
    				}
    				if !tt.wantTimeout {
    					if !retry {
    						// The timeout may be set too short. Retry with a longer one.
    						t.Logf("unexpected timeout for path %q after %v; retrying with longer timeout", tt.path, timeout)
    						timeout *= 2
    						retry = true
    					}
    				}
    				if !strings.Contains(err.Error(), "timeout awaiting response headers") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/mylasta/action/FessMessages.java

        public static final String ERRORS_APP_DB_ALREADY_UPDATED = "{errors.app.db.already.updated}";
    
        /** The key of the message: already existing data, so retry. */
        public static final String ERRORS_APP_DB_ALREADY_EXISTS = "{errors.app.db.already.exists}";
    
        /** The key of the message: Your request might have been processed before this request. Please check and retry it. */
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  8. src/database/sql/sql.go

    // driver.ErrBadConn to signal a broken connection before forcing a new
    // connection to be opened.
    const maxBadConnRetries = 2
    
    func (db *DB) retry(fn func(strategy connReuseStrategy) error) error {
    	for i := int64(0); i < maxBadConnRetries; i++ {
    		err := fn(cachedOrNewConn)
    		// retry if err is driver.ErrBadConn
    		if err == nil || !errors.Is(err, driver.ErrBadConn) {
    			return err
    		}
    	}
    
    	return fn(alwaysNewConn)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  9. src/net/http/serve_test.go

    				return nil, errors.New("too many retries")
    			}
    			return nil, nil
    		}
    
    		pr, pw := io.Pipe()
    		res, err := cst.c.Post(cst.ts.URL, "text/apocryphal", pr)
    		if err != nil {
    			t.Logf("Get error, retrying: %v", err)
    			cst.close()
    			continue
    		}
    		defer res.Body.Close()
    		got, err := io.ReadAll(res.Body)
    		if string(got) != respBody || err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  10. pkg/controller/nodelifecycle/node_lifecycle_controller_test.go

    				},
    			},
    			expectedPodStatusUpdates: 2, // One failed and one retry.
    		},
    		// Node created long time ago, with status updated by kubelet exceeds grace period.
    		// First monitorNodeHealth check will fail to list pods.
    		// Second monitorNodeHealth check will update pod status to NotReady (retry).
    		{
    			desc: "unsuccessful pod list, retry required",
    			fakeNodeHandler: &testutil.FakeNodeHandler{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 03:26:45 UTC 2024
    - 119K bytes
    - Viewed (0)
Back to top