Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 190 for idempotency (0.17 sec)

  1. pkg/kubelet/cm/dra/manager.go

    	}
    
    	return &ContainerInfo{Annotations: annotations, CDIDevices: cdiDevices}, nil
    }
    
    // UnprepareResources calls a plugin's NodeUnprepareResource API for each resource claim owned by a pod.
    // This function is idempotent and may be called multiple times against the same pod.
    // As such, calls to the underlying NodeUnprepareResource API are skipped for claims that have
    // already been successfully unprepared.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:23:29 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Stopwatch.java

     * stopwatch.stop(); // optional
     *
     * Duration duration = stopwatch.elapsed();
     *
     * log.info("time: " + stopwatch); // formatted string like "12.3 ms"
     * }</pre>
     *
     * <p>The state-changing methods are not idempotent; it is an error to start or stop a stopwatch
     * that is already in the desired state.
     *
     * <p>When testing code that uses this class, use {@link #createUnstarted(Ticker)} or {@link
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 15:09:35 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  3. pkg/registry/flowcontrol/rest/storage_flowcontrol.go

    		// the caller can explicitly cancel the context which is an
    		// indication to us to exit the goroutine immediately.
    		// Note that we are calling cancel more than once when we are here,
    		// CancelFunc is idempotent and we expect no ripple effects here.
    		case <-ctx.Done():
    		}
    	}()
    	return ctx, cancel
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

            // 408's are rare in practice, but some servers like HAProxy use this response code. The
            // spec says that we may repeat the request without modifications. Modern browsers also
            // repeat the request (even non-idempotent ones.)
            if (!client.retryOnConnectionFailure) {
              // The application layer has directed us not to retry the request.
              return null
            }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

        assertThat(partEfg.headers).isEqualTo(headersOf("Content-ID", "efg"))
        assertThat(partEfg.body.readUtf8()).isEqualTo("efgh")
    
        assertThat(parts.nextPart()).isNull()
      }
    
      @Test fun `no more parts is idempotent`() {
        val multipart =
          """
          |--simple boundary
          |
          |abcd
          |--simple boundary--
          |
          |efgh
          |--simple boundary--
          """.trimMargin()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. internal/s3select/sql/parser.go

    	ObjectWildcard bool       `parser:"| @\".*\""`          // .* form
    	ArrayWildcard  bool       `parser:"| @\"[*]\""`         // [*] form
    }
    
    // JSONPath represents a keypath.
    // Instances should be treated idempotent and not change once created.
    type JSONPath struct {
    	BaseKey  *Identifier        `parser:" @@"`
    	PathExpr []*JSONPathElement `parser:"(@@)*"`
    
    	// Cached values:
    	pathString         string
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go

    		}
    		time := Time{}
    		if err := time.Unmarshal(data); err != nil {
    			t.Fatalf("Failed to unmarshal output: '%v': %v", input, err)
    		}
    		if !reflect.DeepEqual(input, time) {
    			t.Errorf("Marshal->Unmarshal is not idempotent: '%v' vs '%v'", input, time)
    		}
    	}
    }
    
    func TestTimeEqual(t *testing.T) {
    	t1 := NewTime(time.Now())
    	cases := []struct {
    		name   string
    		x      *Time
    		y      *Time
    		result bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. api/openapi-spec/v3/apis__admissionregistration.k8s.io__v1_openapi.json

                "type": "string"
              },
              "generation": {
                "description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 388.1K bytes
    - Viewed (0)
  9. src/net/http/fcgi/child.go

    	}
    }
    
    func (c *child) cleanUp() {
    	for _, req := range c.requests {
    		if req.pw != nil {
    			// race with call to Close in c.serveRequest doesn't matter because
    			// Pipe(Reader|Writer).Close are idempotent
    			req.pw.CloseWithError(ErrConnClosed)
    		}
    	}
    }
    
    // Serve accepts incoming FastCGI connections on the listener l, creating a new
    // goroutine for each. The goroutine reads requests and then calls handler
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. src/runtime/pinner.go

    			// resilient to an empty pinner being finalized, which is done
    			// by checking p.refs' length.
    			SetFinalizer(p.pinner, func(i *pinner) {
    				if len(i.refs) != 0 {
    					i.unpin() // only required to make the test idempotent
    					pinnerLeakPanic()
    				}
    			})
    		}
    	}
    	ptr := pinnerGetPtr(&pointer)
    	if setPinned(ptr, true) {
    		p.refs = append(p.refs, ptr)
    	}
    }
    
    // Unpin unpins all pinned objects of the [Pinner].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top