wide-soccer-37846
08/01/2024, 9:23 AMthe object has been modified; please apply your changes to the latest version and try again
. This error is also reported in the logs of the running flyte-binary pod as something like
E0801 09:00:58.664274 7 workers.go:103] error syncing 'flytesnacks-development/fd1af753191f54b7598f': Operation cannot be fulfilled on <http://flyteworkflows.flyte.lyft.com|flyteworkflows.flyte.lyft.com> "fd1af753191f54b7598f": the object has been modified; please apply your changes to the latest version and try again
Versions of this error that I have found online seem to normally be when trying to modify some k8s resource that has a version mismatch. I'm not doing that here - the error just sometimes arises part way through a workflow, and may cause the whole thing to abort. It is typically recoverable afterwards.
Some details on the deployment:
⢠Running on EKS with Fargate profiles
⢠Using the single flyte-binary (scaled to 4 replicas)
⢠Using the built-in auth
My guess is that it has something to do with either how Flyte itself is creating/updating nodes/pods, or how Fargate handles the nodes underneath, but I'm not really sure (I'm a beginner with kubernetes so very much figuring it out as I go). Any help hugely appreciated, and let me know if I can give any more detail to help diagnose.average-finland-92144
08/01/2024, 3:31 PMwide-soccer-37846
08/01/2024, 4:02 PMaverage-finland-92144
08/01/2024, 4:21 PMwide-soccer-37846
08/01/2024, 4:25 PMaverage-finland-92144
08/01/2024, 5:05 PMmax-streak-length
and how it could help you.
The the object has been modified; please apply your changes to the latest version and try again
error is reported by K8s, and it seems to come if a controller (like flytepropeller) tries to write to a resource that has changed but the controller was not aware yet of that change (this is what is called a "stale" write, which is blocked by etcd)
Happy to have a call and go over a bit of the background here (assuming that helps)
Could you try enabling max-streak-length
and set it to 12
to begin with?
for flyte-binary that'd be
configuration:
propeller:
max-streak-length: '12'
Also please take a look at this section of the docs and feel free to ask any questionwide-soccer-37846
08/01/2024, 5:11 PMaverage-finland-92144
08/01/2024, 5:13 PMAlso sounds like forcing the workflow to be sequential may help?Not sure if that's needed, we can figure out first if the current structure can work
average-finland-92144
08/01/2024, 5:13 PMwide-soccer-37846
08/05/2024, 1:41 PMaverage-finland-92144
08/05/2024, 2:18 PM