-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tools] add cookie related commands #1794
Conversation
*Motivation* In some use cases, you need cookie related tools to create/delete/update/get cookie when handling production issues. Currently bookkeeper doesn't provide such commands. *Changes* Add cookie related commands - create - delete - get - update - generate
first cut, still working on adding them to the old bookkeeper shell tool and tests for them. |
example run of the commands:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great.
I wonder if we can have this new feature on branch 4.8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Nice work
run integration tests |
IGNORE IT CI |
Descriptions of the changes in this PR: *Motivation* In some use cases, you need cookie related tools to create/delete/update/get cookie when handling production issues. Currently bookkeeper doesn't provide such commands. *Changes* Add cookie related commands - create - delete - get - update - generate Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Jia Zhai <None>, Matteo Merli <mmerli@apache.org> This closes #1794 from sijie/add_cookie_commands (cherry picked from commit e31e844) Signed-off-by: Sijie Guo <sijie@apache.org>
…nd setting Descriptions of the changes in this PR: ### Motivation In PR #1794 we brought in a way to generate a cookie from command line. However during generation, we have to also encode the ledger dirs by default. ### Changes Added encoding of ledger dir paths while setting the ledger dirs in a generated cookie in `GenerateCookieCommand.java`. Tweaked existing test to include more than one ledger path for test coverage. Master Issue: #2145 Reviewers: Jia Zhai <zhaijia@apache.org>, Sijie Guo <None>, Enrico Olivelli <eolivelli@gmail.com> This closes #2146 from Ghatage/community/2145, closes #2145 and squashes the following commits: 2de21f8 [Anup Ghatage] Fix checkstyle 4695675 [Anup Ghatage] Revert to handling encoding like in generateCookie(), Add another test 90d0213 [Anup Ghatage] Change GenerateCookieCommandTest's to encodeDirPaths while creating cookies d8da515 [Anup Ghatage] Issue #2145: Make ledgerDirs in Cookie consistent across generating and setting
Descriptions of the changes in this PR:
Motivation
In some use cases, you need cookie related tools to create/delete/update/get cookie when handling production issues.
Currently bookkeeper doesn't provide such commands.
Changes
Add cookie related commands