Skip to content

Commit eba90f7

Browse files
hangc0276lhotari
authored andcommitted
[fix][cli] Fix set topic retention policy failed (#23688)
(cherry picked from commit 85b3d54)
1 parent 8b62cfd commit eba90f7

File tree

1 file changed

+1
-1
lines changed
  • pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli

1 file changed

+1
-1
lines changed

pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdTopics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1852,7 +1852,7 @@ private class SetRetention extends CliCommand {
18521852
+ "-t 120 will set retention to 2 minutes. "
18531853
+ "0 means no retention and -1 means infinite time retention.", required = true,
18541854
converter = TimeUnitToSecondsConverter.class)
1855-
private Integer retentionTimeInSec;
1855+
private Long retentionTimeInSec;
18561856

18571857
@Option(names = { "--size", "-s" }, description = "Retention size limit with optional size unit suffix. "
18581858
+ "For example, 4096, 10M, 16G, 3T. The size unit suffix character can be k/K, m/M, g/G, or t/T. "

0 commit comments

Comments
 (0)