-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[fix][client-tool]fix the topic offload policy param will be covered unexpected. #16357
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
base: master
Are you sure you want to change the base?
[fix][client-tool]fix the topic offload policy param will be covered unexpected. #16357
Conversation
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.
Here is a good example #15657.
Could you please help add unit tests and update the documents?
435e31f
to
e5cbff3
Compare
pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopicPolicies.java
Show resolved
Hide resolved
pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopicPolicies.java
Show resolved
Hide resolved
pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopics.java
Show resolved
Hide resolved
1dcbc12
to
aa6b51f
Compare
/pulsarbot run-failure-checks |
aa6b51f
to
8910eea
Compare
|
||
```bash | ||
|
||
$ pulsar-admin topic set-offload-policies tenant/namespace/topic options |
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.
$ pulsar-admin topic set-offload-policies tenant/namespace/topic options | |
$ pulsar-admin topics set-offload-policies tenant/namespace/topic options |
if (Objects.equals(offloadPolicies.getManagedLedgerOffloadDeletionLagInMillis(), | ||
OffloadPoliciesImpl.DEFAULT_OFFLOAD_DELETION_LAG_IN_MILLIS)) { | ||
offloadPolicies.setManagedLedgerOffloadDeletionLagInMillis( | ||
currentOffloadPolicies.getManagedLedgerOffloadDeletionLagInMillis()); |
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.
I think this will change the behavior. After this change, users are not able to set the lagInMillis to null?
The pr had no activity for 30 days, mark with Stale label. |
Since we will start the RC version of
So drag this PR to |
@Nicklee007 Please add the following content to your PR description and select a checkbox:
|
Motivation
Compare the namespace offload policy, the topic offload policy command line update function use
int
andlong
type to accept param and miss some param check method, which will cause the param value set as0
if the param is missed.Modifications
String
to accept param and add some check.PersistentTopicsBase
.NamespacesBase
and some check.Documentation
doc-need