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

object: Add LOCK type #196

Merged
merged 8 commits into from
Feb 22, 2022

Conversation

cthulhu-rider
Copy link
Contributor

@cthulhu-rider cthulhu-rider added the enhancement Improving existing functionality label Feb 15, 2022
@cthulhu-rider cthulhu-rider self-assigned this Feb 15, 2022
@cthulhu-rider
Copy link
Contributor Author

I've added documentation of Object payload format for LOCK types. After the merge I will create an issue to add docs for all other types.

@cthulhu-rider cthulhu-rider marked this pull request as ready for review February 16, 2022 14:54
Copy link

@realloc realloc left a comment

Choose a reason for hiding this comment

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

Lets the others also review this.

Leonard Lyubich and others added 7 commits February 21, 2022 18:02
NeoFS introduces object LOCKs - a mechanism for locking an object from,
for example, deletion. Object locks are implemented and stored in the
container as objects, so there is a need to define a new type of system
objects.

Add `LOCK` value to `ObjectType` enum.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
Add `status.Object` section for object failures. Add `LOCKED` and
`LOCK_NON_REGULAR_OBJECT` codes to it. Return these codes from `Put` and
`Delete` RPCs of `ObjectService`.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
Define `object.Lock` message which carries list of locked objects.
Require this message to be a payload of locked objects (`LOCK` type).

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
…ce RPCs

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
…etail

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
Add `OBJECT_ALREADY_REMOVED` value to `Object` enumeration. Return this
status from object GET/HEAD/RANGE operations.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
@cthulhu-rider cthulhu-rider merged commit 2743e4b into nspcc-dev:master Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Define LOCK object type
4 participants