kubernetes-csi / external-provisioner

Sidecar container that watches Kubernetes PersistentVolumeClaim objects and triggers CreateVolume/DeleteVolume against a CSI endpoint
Apache License 2.0
328 stars 318 forks source link

enable features=HonorPVReclaimPolicy, delete pvc cost more time #1184

Open winrouter opened 3 months ago

winrouter commented 3 months ago

What happened: enable features=HonorPVReclaimPolicy and then concurrency delete 10 pvc cost 10s

and external-provisioner log exists many E0320 12:04:27.749479 1 controller.go:1007] error syncing volume "pvc-4d8607b3-1d3f-4ea9-a635-95e5ec77c599": Operation cannot be fulfilled on persistentvolumes "pvc-4d8607b3-1d3f-4ea9-a635-95e5ec77c599": the object has been modified; please apply your changes to the latest version and try again

when disable eatures=HonorPVReclaimPolicy and then concurrency delete 10 pvc cost 2s

What you expected to happen: normal delete pvc and quickly How to reproduce it: use csi-provisioner:v3.1.0 ` containers:

k8s-triage-robot commented 3 weeks ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale