Comments (2)
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:
- Create new types of events for object overwrite, update and truncation, which could include both contents of
storage.content.new
andstorage.content.deleted
events. - 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.
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)
- Object metadata events without property information
- Help starting OpenIO cluster HOT 2
- Can account service use another backend not redis? HOT 1
- Support Python 3 HOT 1
- [INFORMATION] helm & kubernetes
- how to maintain rawx service
- Generate s3 access key from openio account
- Use https for everything between oio-swift and the rest
- oio-meta2-rebuilder throw AttributeError exception HOT 1
- Create object in OpenIO with backblaze config HOT 1
- [bug][build][gcc-9.3.0] trampolines
- Documentation refers to non-existent group_vars directory
- 503 when trying to upload with EC storage policy HOT 2
- Can't rebuild meta after disk failure - "No rdir assigned" even though it is HOT 2
- Based on the website and all the past people who ran this on linkedin HOT 1
- Acls disable acls and public sharing
- Rebuilder: EC rebuilds fail when one of the K first fragments is itself damaged HOT 2
- Rebuilder: Too many locations already known for chunks with duplicate positions
- Docker Image Version 20.04 Fails to Launch HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oio-sds.