This is an automated email from the ASF dual-hosted git repository.
lhotari 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 85b3d5476ed [fix][cli] Fix set topic retention policy failed (#23688)
85b3d5476ed is described below
commit 85b3d5476ed15ee4e5105139b5e75dc1e926f693
Author: Hang Chen <[email protected]>
AuthorDate: Sat Dec 7 06:27:00 2024 +0800
[fix][cli] Fix set topic retention policy failed (#23688)
---
.../src/main/java/org/apache/pulsar/admin/cli/CmdTopics.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopics.java
b/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopics.java
index 955d6e13e1d..8dd6b664462 100644
---
a/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopics.java
+++
b/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopics.java
@@ -1852,7 +1852,7 @@ public class CmdTopics extends CmdBase {
+ "-t 120 will set retention to 2 minutes. "
+ "0 means no retention and -1 means infinite time
retention.", required = true,
converter = TimeUnitToSecondsConverter.class)
- private Integer retentionTimeInSec;
+ private Long retentionTimeInSec;
@Option(names = { "--size", "-s" }, description = "Retention size
limit with optional size unit suffix. "
+ "For example, 4096, 10M, 16G, 3T. The size unit suffix
character can be k/K, m/M, g/G, or t/T. "