Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/complex objects relations #2810

Merged
merged 8 commits into from
Apr 17, 2024
Merged

Conversation

carpawell
Copy link
Member

No description provided.

It will simplify inhuming children objects without network communications.

Signed-off-by: Pavel Karpy <[email protected]>
Can be used for internal root objects extension (when inhuming the root object
should become inhuming all the children operation). Also make all the setters
check nil pointers to be in sync.

Signed-off-by: Pavel Karpy <[email protected]>
We are moving towards not using child objects in the helpers objects
(Tombstones and Storage groups) so engine should learn to live with it first.

Signed-off-by: Pavel Karpy <[email protected]>
Now we are always checking if objects exists.

Signed-off-by: Pavel Karpy <[email protected]>
This part of the code does not mark anything.

Signed-off-by: Pavel Karpy <[email protected]>
@carpawell carpawell self-assigned this Apr 16, 2024
@carpawell carpawell force-pushed the fix/complex-objects-relations branch 2 times, most recently from a26704e to 3ace6a8 Compare April 16, 2024 21:26
Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some tests would be helpful.

pkg/services/object/tombstone/verify.go Outdated Show resolved Hide resolved
pkg/services/object/tombstone/verify.go Show resolved Hide resolved
Do not allow putting tombstones that contain any child object of a complete
(finished, fully uploaded) user's big object. Only unfinished big objects can be
partially put to a tombstone to perform garbage collecting.
From now, client should attach only root object IDs to the tombstones, all the
removal magic will be applied later internally.
Closes #2093.

Signed-off-by: Pavel Karpy <[email protected]>
It is prohibited and validated now.

Signed-off-by: Pavel Karpy <[email protected]>
They are not required, only root objects can be placed to a tombstone.

Signed-off-by: Pavel Karpy <[email protected]>
@carpawell carpawell force-pushed the fix/complex-objects-relations branch from 3ace6a8 to e97444a Compare April 17, 2024 19:37
@carpawell
Copy link
Member Author

Some tests would be helpful.

Added some.

Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try it.

@roman-khimov roman-khimov merged commit d4a5a1c into master Apr 17, 2024
13 of 14 checks passed
@roman-khimov roman-khimov deleted the fix/complex-objects-relations branch April 17, 2024 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants