You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2018/12/11 13:16:58 UTC
[GitHub] ivankelly commented on issue #1863: EtcdLedgerManager doesn't
support layout versioning
ivankelly commented on issue #1863: EtcdLedgerManager doesn't support layout versioning
URL: https://github.com/apache/bookkeeper/issues/1863#issuecomment-446198517
@codingwangqi yes LedgerLayout. When a client or bookie writes and reads from a ledger manager they need to know the format. There's two parts to this. They need to know the layout of tree which they are reading, and they need to know the format of the contents of the nodes of the tree. In etcd, this is all implicit for now. Initially it was the same in ZK. Problems occur when you want to make a change. Some clients/bookies will understand the change while others will not (assuming not all client upgrade at the same instance), which can cause the clients to break each other.
This is how it was with ZK. We went from a flat layout, with each ledger getting a znode under /ledgers to a hierarchical, where the ledger ID was segmented and the ledger metadata being stored in /ledgers/<XX>/<YY>/LXXYY. If a client assumed flat and added a ledger under /ledgers/LXXYY, stuff like garbage collection on the bookie (using hierarchical) would miss it and data would be lost.
LedgerLayout avoids this situation. When a client connects, it sees the layout which the client has been using and continues to use that layout, or gives up if it doesn't understand it.
Recently I've extended this to include a version for the metadata contained within the nodes, which is how I spotted it was missing from etcd. Is anyone using etcd in production for this?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services