Skip to content

Commit

Permalink
[fix][cli] Fix set topic retention policy failed (apache#23688)
Browse files Browse the repository at this point in the history
  • Loading branch information
hangc0276 authored Dec 6, 2024
1 parent 28e47fa commit 85b3d54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1852,7 +1852,7 @@ private class SetRetention extends CliCommand {
+ "-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. "
Expand Down

0 comments on commit 85b3d54

Please sign in to comment.