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 2022/07/28 09:11:00 UTC

[GitHub] [bookkeeper] horizonzy opened a new issue, #3430: Cookie compatible problem.

horizonzy opened a new issue, #3430:
URL: https://github.com/apache/bookkeeper/issues/3430

   **BUG REPORT**
   
   In #3372, we introduce indexDirs in cookie. When the bookie start, it will check the indexDirs, there is a problem.
   
   If the user already register cookie to RM before this pr, the cookie didn't contains indexDirs, cause the before version didn't contains property `indexDirs`, although user config `indexDirs` in the ServerConfiguration.
   
   After this pr, the bookie restart, it will config indexDirs at local, when it fetch remote cookie from rm, the response cookie didn't contains indexDirs, so the check indexDirs will fail.
   
   This is a breaking compatible problem.


-- 
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: issues-unsubscribe@bookkeeper.apache.org.apache.org

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


[GitHub] [bookkeeper] hangc0276 closed issue #3430: Cookie compatible problem.

Posted by GitBox <gi...@apache.org>.
hangc0276 closed issue #3430: Cookie compatible problem.
URL: https://github.com/apache/bookkeeper/issues/3430


-- 
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: issues-unsubscribe@bookkeeper.apache.org

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


[GitHub] [bookkeeper] horizonzy commented on issue #3430: Cookie compatible problem.

Posted by GitBox <gi...@apache.org>.
horizonzy commented on issue #3430:
URL: https://github.com/apache/bookkeeper/issues/3430#issuecomment-1197885656

   The error stack:
   ```
   2022-07-28T17:17:06,855 - ERROR - [main:Main@274] - Failed to build bookie server
   org.apache.bookkeeper.bookie.BookieException$InvalidCookieException: Cookie [5
   bookieHost: "192.168.31.216:3181"
   journalDir: "/Users/horizon/Downloads/bk1/bk-txn"
   ledgerDirs: "1\t/Users/horizon/Downloads/bk1/bk-data"
   instanceId: "0032a00a-b32b-4ecd-9cbd-4bdffed0d816"
   indexDirs: "1\t/Users/horizon/Downloads/bk1/bk-data"
   ] is not matching with [5
   bookieHost: "192.168.31.216:3181"
   journalDir: "/Users/horizon/Downloads/bk1/bk-txn"
   ledgerDirs: "1\t/Users/horizon/Downloads/bk1/bk-data"
   instanceId: "0032a00a-b32b-4ecd-9cbd-4bdffed0d816"
   ]
   	at org.apache.bookkeeper.bookie.Cookie.verifyInternal(Cookie.java:165) ~[classes/:?]
   	at org.apache.bookkeeper.bookie.Cookie.verify(Cookie.java:176) ~[classes/:?]
   	at org.apache.bookkeeper.bookie.LegacyCookieValidation.readAndVerifyCookieFromRegistrationManager(LegacyCookieValidation.java:182) ~[classes/:?]
   	at org.apache.bookkeeper.bookie.LegacyCookieValidation.checkCookies(LegacyCookieValidation.java:75) ~[classes/:?]
   	at org.apache.bookkeeper.server.Main.buildBookieServer(Main.java:423) ~[classes/:?]
   	at org.apache.bookkeeper.server.Main.doMain(Main.java:272) ~[classes/:?]
   	at org.apache.bookkeeper.server.Main.main(Main.java:255) ~[classes/:?]
   ```


-- 
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: issues-unsubscribe@bookkeeper.apache.org

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


[GitHub] [bookkeeper] StevenLuMT commented on issue #3430: Cookie compatible problem.

Posted by GitBox <gi...@apache.org>.
StevenLuMT commented on issue #3430:
URL: https://github.com/apache/bookkeeper/issues/3430#issuecomment-1197943147

   Thanks @horizonzy 
   I'm following up on this issue


-- 
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: issues-unsubscribe@bookkeeper.apache.org

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