Closed
Conversation
Clean can end up violating the invariant that all child objects of a parent must exist. This test demonstrates this with a manifest and a layer but the problem applies to other relationships as well. Signed-off-by: J Robert Ray <jrray@jrray.org>
jrray
added a commit
that referenced
this pull request
Oct 24, 2025
To address the problem demonstrated in #1282, clean needs to delete things in a top-level order, and skip cleaning children of anything deemed uncleanable. The plan is to make iter_objects (now iter_items) return more detailed information including what the item's parent(s) are, so that the consumer of the stream can build up a graph of items. Since iter_items can be called over RPC and used as a stream, it isn't practical to compute the entire graph and return it in a single response. But the stream items can be used to build up the graph incrementally. Signed-off-by: J Robert Ray <jrray@jrray.org>
jrray
added a commit
that referenced
this pull request
Oct 24, 2025
To address the problem demonstrated in #1282, clean needs to delete things in a top-level order, and skip cleaning children of anything deemed uncleanable. The plan is to make iter_objects (now iter_items) return more detailed information including what the item's parent(s) are, so that the consumer of the stream can build up a graph of items. Since iter_items can be called over RPC and used as a stream, it isn't practical to compute the entire graph and return it in a single response. But the stream items can be used to build up the graph incrementally. Signed-off-by: J Robert Ray <jrray@jrray.org>
jrray
added a commit
that referenced
this pull request
Oct 24, 2025
This is only true when there are no concurrent writers! This is the test from #1282 but passes as of the changes in this PR. Signed-off-by: J Robert Ray <jrray@jrray.org>
Collaborator
Author
|
Closing now that #1288 can pass this test. |
jrray
added a commit
that referenced
this pull request
Oct 24, 2025
To address the problem demonstrated in #1282, clean needs to delete things in a top-level order, and skip cleaning children of anything deemed uncleanable. The plan is to make iter_objects (now iter_items) return more detailed information including what the item's parent(s) are, so that the consumer of the stream can build up a graph of items. Since iter_items can be called over RPC and used as a stream, it isn't practical to compute the entire graph and return it in a single response. But the stream items can be used to build up the graph incrementally. Signed-off-by: J Robert Ray <jrray@jrray.org>
jrray
added a commit
that referenced
this pull request
Oct 24, 2025
This is only true when there are no concurrent writers! This is the test from #1282 but passes as of the changes in this PR. Signed-off-by: J Robert Ray <jrray@jrray.org>
jrray
added a commit
that referenced
this pull request
Oct 24, 2025
To address the problem demonstrated in #1282, clean needs to delete things in a top-level order, and skip cleaning children of anything deemed uncleanable. The plan is to make iter_objects (now iter_items) return more detailed information including what the item's parent(s) are, so that the consumer of the stream can build up a graph of items. Since iter_items can be called over RPC and used as a stream, it isn't practical to compute the entire graph and return it in a single response. But the stream items can be used to build up the graph incrementally. Signed-off-by: J Robert Ray <jrray@jrray.org>
jrray
added a commit
that referenced
this pull request
Oct 24, 2025
This is only true when there are no concurrent writers! This is the test from #1282 but passes as of the changes in this PR. Signed-off-by: J Robert Ray <jrray@jrray.org>
jrray
added a commit
that referenced
this pull request
Oct 24, 2025
To address the problem demonstrated in #1282, clean needs to delete things in a top-level order, and skip cleaning children of anything deemed uncleanable. The plan is to make iter_objects (now iter_items) return more detailed information including what the item's parent(s) are, so that the consumer of the stream can build up a graph of items. Since iter_items can be called over RPC and used as a stream, it isn't practical to compute the entire graph and return it in a single response. But the stream items can be used to build up the graph incrementally. Signed-off-by: J Robert Ray <jrray@jrray.org>
jrray
added a commit
that referenced
this pull request
Oct 24, 2025
This is only true when there are no concurrent writers! This is the test from #1282 but passes as of the changes in this PR. Signed-off-by: J Robert Ray <jrray@jrray.org>
jrray
added a commit
that referenced
this pull request
Oct 25, 2025
To address the problem demonstrated in #1282, clean needs to delete things in a top-level order, and skip cleaning children of anything deemed uncleanable. The plan is to make iter_objects (now iter_items) return more detailed information including what the item's parent(s) are, so that the consumer of the stream can build up a graph of items. Since iter_items can be called over RPC and used as a stream, it isn't practical to compute the entire graph and return it in a single response. But the stream items can be used to build up the graph incrementally. Signed-off-by: J Robert Ray <jrray@jrray.org>
jrray
added a commit
that referenced
this pull request
Oct 25, 2025
This is only true when there are no concurrent writers! This is the test from #1282 but passes as of the changes in this PR. Signed-off-by: J Robert Ray <jrray@jrray.org>
jrray
added a commit
that referenced
this pull request
Oct 25, 2025
To address the problem demonstrated in #1282, clean needs to delete things in a top-level order, and skip cleaning children of anything deemed uncleanable. The plan is to make iter_objects (now iter_items) return more detailed information including what the item's parent(s) are, so that the consumer of the stream can build up a graph of items. Since iter_items can be called over RPC and used as a stream, it isn't practical to compute the entire graph and return it in a single response. But the stream items can be used to build up the graph incrementally. Signed-off-by: J Robert Ray <jrray@jrray.org>
jrray
added a commit
that referenced
this pull request
Oct 25, 2025
This is only true when there are no concurrent writers! This is the test from #1282 but passes as of the changes in this PR. Signed-off-by: J Robert Ray <jrray@jrray.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clean can end up violating the invariant that all child objects of a parent must exist. This test demonstrates this with a manifest and a layer but the problem applies to other relationships as well.