Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 81 for wait4 (0.08 sec)

  1. src/net/http/serve_test.go

    	if err := cmd.Start(); err != nil {
    		b.Fatalf("subprocess failed to start: %v", err)
    	}
    
    	done := make(chan error, 1)
    	go func() {
    		done <- cmd.Wait()
    		close(done)
    	}()
    	defer func() {
    		cancel()
    		<-done
    	}()
    
    	// Wait for the server in the child process to respond and tell us
    	// its listening address, once it's started listening:
    	bs := bufio.NewScanner(stdout)
    	if !bs.Scan() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  2. cluster/gce/gci/configure-helper.sh

    function start-fluentd-resource-update {
      wait-for-apiserver-and-update-fluentd &
    }
    
    # VolumeSnapshot CRDs and controller are installed by cluster addon manager,
    # which may not be available at this point. Run this as a background process.
    function wait-for-volumesnapshot-crd-and-controller {
      # Wait until volumesnapshot CRDs and controller are in place.
      echo "Wait until volume snapshot CRDs are installed"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 22:07:47 UTC 2024
    - 141.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	}
    
    	if _, err := registry.Create(ctx, barPod, rest.ValidateAllObjectFunc, &metav1.CreateOptions{}); err != nil {
    		t.Fatal(err)
    	}
    
    	select {
    	case <-time.After(wait.ForeverTestTimeout):
    		t.Fatalf("timeout after %v", wait.ForeverTestTimeout)
    	case l, ok := <-waitListCh:
    		if !ok {
    			return
    		}
    		pl := l.(*example.PodList).Items
    		if len(pl) != 2 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  4. pkg/controller/job/job_controller_test.go

    			if err != nil {
    				t.Fatalf("Creating orphan pod: %v", err)
    			}
    
    			if err := wait.PollUntilContextTimeout(ctx, 100*time.Millisecond, wait.ForeverTestTimeout, false, func(ctx context.Context) (bool, error) {
    				p, err := clientset.CoreV1().Pods(orphanPod.Namespace).Get(context.Background(), orphanPod.Name, metav1.GetOptions{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  5. CHANGELOG/CHANGELOG-1.4.md

    * Cherrypick [#34851](https://github.com/kubernetes/kubernetes/pull/34851) "Only wait for cache syncs once in NodeController" ([#34861](https://github.com/kubernetes/kubernetes/pull/34861), [@jessfraz](https://github.com/jessfraz))
    * NodeController waits for informer sync before doing anything ([#34809](https://github.com/kubernetes/kubernetes/pull/34809), [@gmarek](https://github.com/gmarek))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 24 02:28:26 UTC 2020
    - 133.5K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_test.go

    	}
    
    	return nil
    }
    
    func retryWithExponentialBackOff(initialDuration time.Duration, fn wait.ConditionFunc) error {
    	backoff := wait.Backoff{
    		Duration: initialDuration,
    		Factor:   3,
    		Jitter:   0,
    		Steps:    6,
    	}
    	return wait.ExponentialBackoff(backoff, fn)
    }
    
    func simulateVolumeInUseUpdate(
    	volumeName v1.UniqueVolumeName,
    	stopCh <-chan struct{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  7. pkg/controller/garbagecollector/garbagecollector_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	go gc.Run(tCtx, 1)
    	// The pseudo-code of GarbageCollector.Sync():
    	// GarbageCollector.Sync(client, period, stopCh):
    	//    wait.Until() loops with `period` until the `stopCh` is closed :
    	//        wait.PollImmediateUntil() loops with 100ms (hardcode) util the `stopCh` is closed:
    	//            GetDeletableResources()
    	//            gc.resyncMonitors()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  8. CHANGELOG/CHANGELOG-1.5.md

    * Only wait for cache syncs once in NodeController ([#34851](https://github.com/kubernetes/kubernetes/pull/34851), [@ncdc](https://github.com/ncdc))
    * NodeController waits for informer sync before doing anything ([#34809](https://github.com/kubernetes/kubernetes/pull/34809), [@gmarek](https://github.com/gmarek))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 24 02:28:26 UTC 2020
    - 136.4K bytes
    - Viewed (0)
  9. src/database/sql/sql.go

    func (db *DB) Stats() DBStats {
    	wait := db.waitDuration.Load()
    
    	db.mu.Lock()
    	defer db.mu.Unlock()
    
    	stats := DBStats{
    		MaxOpenConnections: db.maxOpen,
    
    		Idle:            len(db.freeConn),
    		OpenConnections: db.numOpen,
    		InUse:           db.numOpen - len(db.freeConn),
    
    		WaitCount:         db.waitCount,
    		WaitDuration:      time.Duration(wait),
    		MaxIdleClosed:     db.maxIdleClosed,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  10. pkg/controller/podautoscaler/horizontal_test.go

    	m.metricComputationErrorLabels[metricType] = append(m.metricComputationErrorLabels[metricType], err)
    }
    
    // waitUntilRecorded waits for the HPA controller to reconcile at least once.
    func (m *mockMonitor) waitUntilRecorded(t *testing.T) {
    	if err := wait.Poll(20*time.Millisecond, 100*time.Millisecond, func() (done bool, err error) {
    		m.RWMutex.RLock()
    		defer m.RWMutex.RUnlock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 199.3K bytes
    - Viewed (0)
Back to top