Code Monkey home page Code Monkey logo

Comments (8)

realloc avatar realloc commented on June 30, 2024 1

I propose to implicitly add $Object:objectType=REGULAR to $Object:ROOT filter then and reflect it in api doc and leave other filters as-is.

from neofs-node.

cthulhu-rider avatar cthulhu-rider commented on June 30, 2024

Well, physically tombstones are root objects. Is there a requirement to exclude tombstones from such a search?

from neofs-node.

alexvanin avatar alexvanin commented on June 30, 2024

Well, physically tombstones are root objects. Is there a requirement to exclude tombstones from such a search?

Yes, in nspcc-dev/neofs-api-go#163 we discussed leaf and root objects as a system and user scope. Tombstone is an internal implementation detail and should not be seen in user scope, therefore tombstone is not a root object. However it is a physically stored object, that can be migrated and replicated, so it is a leaf.

from neofs-node.

cthulhu-rider avatar cthulhu-rider commented on June 30, 2024

Well, physically tombstones are root objects. Is there a requirement to exclude tombstones from such a search?

Yes, in nspcc-dev/neofs-api-go#163 we discussed leaf and root objects as a system and user scope. Tombstone is an internal implementation detail and should not be seen in user scope, therefore tombstone is not a root object. However it is a physically stored object, that can be migrated and replicated, so it is a leaf.

According to neofs-api tombstones match root filter. Is it a bug in API?

from neofs-node.

alexvanin avatar alexvanin commented on June 30, 2024

According to neofs-api tombstones match root filter. Is it a bug in API?

I would like to say yes, but maybe there are different opinions on that. Neofs-api contains implementation details, but it lacks the meaning behind root and leaf objects (as for me, they should represent user and system scopes)

from neofs-node.

cthulhu-rider avatar cthulhu-rider commented on June 30, 2024

What do you think @realloc?

from neofs-node.

realloc avatar realloc commented on June 30, 2024

I think Tombstones are a special type of objects, as indicated in ObjectType. Object Search operations should work with Regular objects by default. If there is need to search for Tombstones or Storage Groups, the one may use $Object:objectType key.

Tombstone has a list of engraved objects in it's payload, just like Storage Group does. It doesn't participate in split hierarchy directly, it doesn't have split headers and because of that it should not be treated as leaf or root object. I propose to exclude Tombstones and Storage Groups from regular search and reflect that behaviour in documentation.

from neofs-node.

alexvanin avatar alexvanin commented on June 30, 2024

I think Tombstones are a special type of objects, as indicated in ObjectType. Object Search operations should work with Regular objects by default. If there is need to search for Tombstones or Storage Groups, the one may use $Object:objectType key.

Tombstone has a list of engraved objects in it's payload, just like Storage Group does. It doesn't participate in split hierarchy directly, it doesn't have split headers and because of that it should not be treated as leaf or root object. I propose to exclude Tombstones and Storage Groups from regular search and reflect that behaviour in documentation.

While I agree that only regular objects should be treated as root object, I cannot agree about leafs. Leafs are designed to return physically stored object. It is useful for system operations like replication because storage groups, tombstone and regular objects should be treated equally.

from neofs-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.