Repository navigation
Support get/remove/set retention policy command for topic - #420
Merged
Merged
Conversation
nodece
force-pushed
the
retention_policy
branch
from
August 12, 2021 11:07
f784b8f to
d873568
Compare
nodece
force-pushed
the
retention_policy
branch
2 times, most recently
from
August 13, 2021 06:02
37c9072 to
ab7f5d1
Compare
codelipenghui
approved these changes
Aug 16, 2021
zymap
suggested changes
Aug 17, 2021
zymap
left a comment
Contributor
There was a problem hiding this comment.
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.
nodece
force-pushed
the
retention_policy
branch
3 times, most recently
from
August 18, 2021 02:28
10e626e to
8970592
Compare
nodece
force-pushed
the
retention_policy
branch
2 times, most recently
from
August 18, 2021 05:32
93d8dd0 to
9ff9573
Compare
Contributor
Author
|
Hello @zymap, ut-tests always fail on Github Actions, but it is pass locally, could you give me some point? |
zymap
reviewed
Aug 19, 2021
Contributor
|
@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. |
nodece
force-pushed
the
retention_policy
branch
5 times, most recently
from
August 19, 2021 09:48
ab80ba7 to
625cafb
Compare
Contributor
|
@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! |
nodece
force-pushed
the
retention_policy
branch
2 times, most recently
from
August 20, 2021 06:15
226df5b to
9d50c9c
Compare
Signed-off-by: Zixuan Liu <[email protected]>
nodece
force-pushed
the
retention_policy
branch
from
August 20, 2021 15:16
9d50c9c to
7e0a64e
Compare
zymap
approved these changes
Aug 23, 2021
This was referenced Aug 23, 2021
nodece
added a commit
that referenced
this pull request
Nov 12, 2021
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)
tisonkun
pushed a commit
to tisonkun/pulsar-client-go
that referenced
this pull request
Aug 15, 2023
…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
tisonkun
pushed a commit
to apache/pulsar-client-go
that referenced
this pull request
Aug 16, 2023
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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