Giter Site home page Giter Site logo

Comments (2)

fvennetier avatar fvennetier commented on June 7, 2024

Hello.
I did some investigation. Here is a recap.

Operation Event type Contains user metadata Contains chunks Used by
Object create storage.content.new yes no Replicator
Object delete storage.content.deleted no yes Content cleaner, Replicator
Object create (overwrite) (1) storage.content.deleted no yes Content cleaner, Replicator
Object create (overwrite) (2) storage.content.new yes no Replicator
Object append storage.content.append no (can't be changed) no Replicator
Object update (chunk mod) (1) storage.content.deleted no (missing version) yes (partial) Content cleaner, Replicator
Object update (chunk mod) (2) storage.content.new yes (partial) no Replicator
Object change property storage.content.update yes no Replicator
Object truncate (1) storage.content.deleted no (missing header) yes (partial) Content cleaner, Replicator
Object truncate (2) storage.content.new yes (partial) no Replicator

As you pointed out, it is not possible (or hard) to know which operation triggered the event. For OpenIO SDS internal operations, we did not need to distinguish them.

I see two possible evolutions:

  1. Create new types of events for object overwrite, update and truncation, which could include both contents of storage.content.new and storage.content.deleted events.
  2. Keep the existing events, but add a new field telling which kind of operation triggered the event emission. This solution is easier to implement, and does not break compatibility.

from oio-sds.

marcvef avatar marcvef commented on June 7, 2024

Hi Florent, thanks for the detailed reply and considering the change!

I don't think it is necessary to create new types of events. Keeping the existing events and adding some additional information, as you suggested in Option 2, is sufficient and would help significantly.

from oio-sds.

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.