Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,402 for finalizer (0.25 sec)

  1. api/openapi-spec/v3/apis__authentication.k8s.io__v1alpha1_openapi.json

    significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:25 UTC 2023
    - 31.5K bytes
    - Viewed (0)
  2. src/os/exec_unix.go

    		// racing with Wait, or a double Release.
    		p.handlePersistentRelease(statusReleased)
    	case modePID:
    		// Just mark the PID unusable.
    		p.pidDeactivate(statusReleased)
    	}
    	// no need for a finalizer anymore
    	runtime.SetFinalizer(p, nil)
    	return nil
    }
    
    func findProcess(pid int) (p *Process, err error) {
    	h, err := pidfdFind(pid)
    	if err == ErrProcessDone {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. src/crypto/internal/boring/hmac.go

    		C._goboringcrypto_HMAC_CTX_cleanup(&h.ctx)
    	} else {
    		h.needCleanup = true
    		// Note: Because of the finalizer, any time h.ctx is passed to cgo,
    		// that call must be followed by a call to runtime.KeepAlive(h),
    		// to make sure h is not collected (and finalized) before the cgo
    		// call returns.
    		runtime.SetFinalizer(h, (*boringHMAC).finalize)
    	}
    	C._goboringcrypto_HMAC_CTX_init(&h.ctx)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 17:51:31 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. src/internal/poll/splice_linux.go

    	splicePipeFields
    
    	// We want to use a finalizer, so ensure that the size is
    	// large enough to not use the tiny allocator.
    	_ [24 - unsafe.Sizeof(splicePipeFields{})%24]byte
    }
    
    // splicePipePool caches pipes to avoid high-frequency construction and destruction of pipe buffers.
    // The garbage collector will free all pipes in the sync.Pool periodically, thus we need to set up
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. src/os/exec_windows.go

    	//
    	// The API on Windows expects EINVAL if Release is called multiple
    	// times.
    	if old := p.handlePersistentRelease(statusReleased); old == statusReleased {
    		return syscall.EINVAL
    	}
    
    	// no need for a finalizer anymore
    	runtime.SetFinalizer(p, nil)
    	return nil
    }
    
    func (p *Process) closeHandle() {
    	syscall.CloseHandle(syscall.Handle(p.handle))
    }
    
    func findProcess(pid int) (p *Process, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. src/syscall/syscall_unix_test.go

    		if err != nil {
    			t.Fatalf("Open failed: %v", err)
    		}
    		// f takes ownership of fd, and will close it.
    		//
    		// N.B. This defer is also necessary to keep f alive
    		// while we use its fd, preventing its finalizer from
    		// executing.
    		f := os.NewFile(uintptr(fd), name)
    		defer f.Close()
    
    		if err := syscall.Ftruncate(int(f.Fd()), 1<<20); err != nil {
    			t.Fatalf("Ftruncate(1<<20) failed: %v", err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  7. pkg/registry/core/namespace/strategy_test.go

    		ObjectMeta: metav1.ObjectMeta{Name: "bar", ResourceVersion: "4"},
    	}
    	// ensure we copy spec.finalizers from old to new
    	Strategy.PrepareForUpdate(ctx, invalidNamespace, namespace)
    	if len(invalidNamespace.Spec.Finalizers) != 1 || invalidNamespace.Spec.Finalizers[0] != api.FinalizerKubernetes {
    		t.Errorf("PrepareForUpdate should have preserved old.spec.finalizers")
    	}
    	errs = Strategy.ValidateUpdate(ctx, invalidNamespace, namespace)
    	if len(errs) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 07 08:51:17 UTC 2021
    - 6K bytes
    - Viewed (0)
  8. pkg/controller/job/indexed_job_utils_test.go

    				},
    				Spec: batch.JobSpec{
    					Completions: ptr.To(tc.completions),
    				},
    			}
    			pods := hollowPodsWithIndexPhase(tc.pods)
    			for _, p := range pods {
    				p.Finalizers = append(p.Finalizers, batch.JobTrackingFinalizer)
    			}
    			gotStatusIntervals, gotIntervals := calculateSucceededIndexes(logger, job, pods)
    			if diff := cmp.Diff(tc.wantStatusIntervals, gotStatusIntervals); diff != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  9. api/openapi-spec/v3/apis__authentication.k8s.io__v1beta1_openapi.json

    significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:25 UTC 2023
    - 31.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy.go

    		if err != nil {
    			return allWarnings
    		}
    		newAdded = newAdded.Difference(sets.NewString(oldObjAccessor.GetFinalizers()...))
    	}
    
    	for _, finalizer := range newAdded.List() {
    		allWarnings = append(allWarnings, validateKubeFinalizerName(finalizer, fldPath)...)
    	}
    
    	return allWarnings
    }
    
    // Canonicalize normalizes the object after validation.
    func (customResourceStrategy) Canonicalize(obj runtime.Object) {
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 21:22:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top