This is an automated email from the ASF dual-hosted git repository.

liuyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 336fcb0cf84 [Doc][Cli] Add explanations for topic retention policy. 
(#16229)
336fcb0cf84 is described below

commit 336fcb0cf848d59fde1a35c5618c7a005b7ddfc4
Author: Qiang Zhao <[email protected]>
AuthorDate: Tue Jun 28 15:54:02 2022 +0800

    [Doc][Cli] Add explanations for topic retention policy. (#16229)
---
 .../main/java/org/apache/pulsar/admin/cli/CmdTopicPolicies.java  | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git 
a/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopicPolicies.java
 
b/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopicPolicies.java
index 8a4821df152..b3bf27fe54a 100644
--- 
a/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopicPolicies.java
+++ 
b/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopicPolicies.java
@@ -449,7 +449,8 @@ public class CmdTopicPolicies extends CmdBase {
         private boolean applied = false;
 
         @Parameter(names = { "--global", "-g" }, description = "Whether to get 
this policy globally. "
-                + "If set to true, broker returned global topic policies")
+                + "If set to true, the broker returns global topic policies"
+                + "If set to false or not set, the broker returns local topic 
policies")
         private boolean isGlobal = false;
 
         @Override
@@ -474,7 +475,8 @@ public class CmdTopicPolicies extends CmdBase {
         private String limitStr;
 
         @Parameter(names = { "--global", "-g" }, description = "Whether to set 
this policy globally. "
-                + "If set to true, the policy will be replicate to other 
clusters asynchronously")
+                + "If set to true, the policy is replicated to other clusters 
asynchronously, "
+                + "If set to false or not set, the topic retention policy is 
replicated to local clusters.")
         private boolean isGlobal = false;
 
         @Override
@@ -507,7 +509,8 @@ public class CmdTopicPolicies extends CmdBase {
         private List<String> params;
 
         @Parameter(names = { "--global", "-g" }, description = "Whether to 
remove this policy globally. "
-                + "If set to true, the removing operation will be replicate to 
other clusters asynchronously")
+                + "If set to true, the removing operation is replicated to 
other clusters asynchronously"
+                + "If set to false or not set, the topic retention policy is 
replicated to local clusters.")
         private boolean isGlobal = false;
 
         @Override

Reply via email to