Skip to content

remotecache: avoid ultra deep recursion for complex cache layouts#6168

Closed
BtbN wants to merge 1 commit into
moby:masterfrom
BtbN:loop_detection_fix
Closed

remotecache: avoid ultra deep recursion for complex cache layouts#6168
BtbN wants to merge 1 commit into
moby:masterfrom
BtbN:loop_detection_fix

Conversation

@BtbN
Copy link
Copy Markdown

@BtbN BtbN commented Aug 27, 2025

This is a follow-up to #6082 and #6008
I don't have a way to easily reproduce the cache loop detection issue, but I have run into it multiple times.
Looking at the logs and the code, this should hopefully greatly reduce the detph and width the recursion can reach here, hopefully speeding it up in the process.

I have not been able to verify if this actually solves the issue yet. But the change looks sensible to me either way.

@BtbN BtbN force-pushed the loop_detection_fix branch from aaef19f to 9704b7e Compare August 27, 2025 17:59
@tonistiigi
Copy link
Copy Markdown
Member

@BtbN Can you see if #6129 fixes the issue for you? This whole code should be removed there.

@jsternberg
Copy link
Copy Markdown
Collaborator

I'm going to close this since the code it modifies no longer exists. From looking at the code, I think the new code still needs to be modified to remove recursion from the implementation.

@jsternberg jsternberg closed this Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants