-
Notifications
You must be signed in to change notification settings - Fork 68
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
Support get/remove/set retention policy command for topic #420
Conversation
f784b8f
to
d873568
Compare
37c9072
to
ab7f5d1
Compare
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.
it's better to add a test to verify the whole process.
For example: set the retention to a topic and then get the value to verify is it set right. It can test both the cli and broker.
10e626e
to
8970592
Compare
93d8dd0
to
9ff9573
Compare
Hello @zymap, ut-tests always fail on Github Actions, but it is pass locally, could you give me some point? |
@nodece I run the test on local as well and it failed. You can run a standalone and then run the test to check it. |
ab80ba7
to
625cafb
Compare
@nodece I issued a PR against your PR branch to unify the tests and make them a bit like the dispatch tests that @limingnihao did (which I in turn based my publish-rate command and tests on). Hope it helps! |
226df5b
to
9d50c9c
Compare
Signed-off-by: Zixuan Liu <[email protected]>
9d50c9c
to
7e0a64e
Compare
background from #246, the PR implements the following commands: - `pulsar topics get-retention <topic> -a` - Get the retention policy for a topic - `pulsar topics remove-retention <topic>` - Remove the retention policy for a topic - `pulsar topics set-retention <topic> --time <string> --size <string>` - Set the retention policy for a topic (cherry picked from commit c4edd49)
…tive/pulsarctl#420) background from streamnative/pulsarctl#246, the PR implements the following commands: - `pulsar topics get-retention <topic> -a` - Get the retention policy for a topic - `pulsar topics remove-retention <topic>` - Remove the retention policy for a topic - `pulsar topics set-retention <topic> --time <string> --size <string>` - Set the retention policy for a topic
…tive/pulsarctl#420) background from streamnative/pulsarctl#246, the PR implements the following commands: - `pulsar topics get-retention <topic> -a` - Get the retention policy for a topic - `pulsar topics remove-retention <topic>` - Remove the retention policy for a topic - `pulsar topics set-retention <topic> --time <string> --size <string>` - Set the retention policy for a topic
Signed-off-by: Zixuan Liu [email protected]
background from #246, the PR implements the following commands:
pulsarctl topics get-retention <topic> -a
- Get the retention policy for a topicpulsarctl topics remove-retention <topic>
- Remove the retention policy for a topicpulsarctl topics set-retention <topic> --time <string> --size <string>
- Set the retention policy for a topic