apache / bookkeeper

Apache BookKeeper - a scalable, fault tolerant and low latency storage service optimized for append-only workloads
https://bookkeeper.apache.org/
Apache License 2.0
1.9k stars 901 forks source link

Write customMetadata on ledgers created by DistributedLog #2218

Closed eolivelli closed 4 years ago

eolivelli commented 4 years ago

FEATURE REQUEST

  1. Please describe the feature you are requesting. It is very common for BookKeeper based applications to tag ledgers with common custom metadata, like:
    • application: "name of the application"
    • component: "component of the application"

DistributedLog is an API over BookKeeper and we need to write such tags on ledgers created by DistributedLog, in this case application won't be "distributedlog" but the name of the application itself and so the component.

  1. Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue? should-have

  2. Provide any additional detail on your proposed use case for this feature. We could make a set of base custom metadata to write at each createLedger, and also add some dlog specific metadata (this will ease debugging as well)

eolivelli commented 4 years ago

@diegosalvi @dmercuriali PTAL

dmercuriali commented 4 years ago

Started working on this. It's not done but I created a draft PR if someone wants to take a look.