You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2022/01/10 13:46:58 UTC

[GitHub] [skywalking-banyandb] hanahmily commented on pull request #65: WIP: metadata reload

hanahmily commented on pull request #65:
URL: https://github.com/apache/skywalking-banyandb/pull/65#issuecomment-1008888940


   > > The indexrule, rulebinding, and steam/measure are all independent. The handler only tasks care of the objects it binds to.
   > > It might cause some inconsistency when updating several objects. That's because the banyandb's APIs are using the eventual consistency model, which helps us get rid of the complicated operation to support a strong consistency model, which is not mandatory for our use cases.
   > 
   > I see what you meant here. But the question is, when should the stream/measure module reload the schema? since the measure and stream modules are not aware of IndexRuleBinding and IndexRule?
   
   The metadata model doesn't have to know it. The stream/meausre should though. In the booting phase, stream/measure handles the indexurle/binding by themself. They are responsible for listening to the change events of indexrule and indexrulebinding, then determining whether the updated objects need to be handled. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org