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 2017/11/13 20:34:26 UTC

[GitHub] ivankelly commented on issue #712: Issue 544: Bootup cookie validation considers an empty journal to signify a new bookie

ivankelly commented on issue #712: Issue 544: Bootup cookie validation considers an empty journal to signify a new bookie
URL: https://github.com/apache/bookkeeper/pull/712#issuecomment-344049114
 
 
   For me, this algorithm should look like.
   {code}
   // read zk cookie
   
   if (zk cookie is null) {
       // new directories should be empty
       // add cookie to all dirs and zk
   } else if (master is superset of zk cookie and expansion enabled) {
       // old directories should match zk cookie
       // new directories should be empty
       // add master cookie to all dirs and zk
   } else if (cookie needs upgrade) {
       // verify that zk cookie matches all dirs
       // add new cookie to add dirs and zk
   }
   
   // verify that zk cookie matches all dirs
   {code}

----------------------------------------------------------------
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