Client-side apply has a pathological case with deeply nested identical objects #698
Labels
area/kubectl
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
priority/P2
sig/cli
Categorizes an issue or PR as relevant to SIG CLI.
Test case
Underlying issue
Deeply nested (e.g. validation for podspec) identical issues hit a pathological case in the json-patch library's merge patch generator, which recursively traverses every sub-tree to check if two json trees are identical
Evidence
You can attach an execution trace and use
go tool trace
to see this for yourself(that's me stopping the attempt after 30s, not it taking 30s total)
runtime trace call patch
Potential fixes
EDIT: See below -- moving around some conditions in the jsonpatch library seems to fix things.
Also, this may be kind-of moot, since we'll be getting server-side apply, which doesn't suffer from this particular issue.
The text was updated successfully, but these errors were encountered: