Wrong revision is picked up for traffic target marked as "latest" #6876
Labels
area/API
API objects and controllers
area/networking
kind/bug
Categorizes issue or PR as related to a bug.
What version of Knative?
Expected Behavior
When deleting a revision and updating a service short after each other, it occurs that the revision that is deleted is picked for the latest traffic target
Actual Behavior
In the client E2E we have a flake that looks like this
As you can see clearly, the revision that is just deleted is picked up again on the following update for the traffic section.
See also the full test log which includes the resources descriptors.
The same happens also sometimes, when deleting a service and recreating it with the same name immediately after the deletion.
I suspect, as
delete
is an async operation, that the internal lookup for the traffic target doesn't honor themeta.deletionTimestamp
on the revision.Steps to Reproduce the Problem
Try to delete revision/service and then perform a service create/update. In the client E2E tests I would say it happens in 10-15% of the test cases (but that is only a gut feeling).
The text was updated successfully, but these errors were encountered: