315157973 commented on code in PR #15657:
URL: https://github.com/apache/pulsar/pull/15657#discussion_r881252099


##########
pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdNamespaces.java:
##########
@@ -386,14 +386,27 @@ private class SetMessageTTL extends CliCommand {
         @Parameter(description = "tenant/namespace", required = true)
         private java.util.List<String> params;
 
-        @Parameter(names = { "--messageTTL", "-ttl" }, description = "Message 
TTL in seconds. "
-                + "When the value is set to `0`, TTL is disabled.", required = 
true)
-        private int messageTTL;
+        @Parameter(names = { "--messageTTL", "-ttl" },
+                description = "Message TTL in seconds (or minutes, hours, 
days, weeks eg: 100m, 3h, 2d, 5w). "
+                        + "When the value is set to `0`, TTL is disabled.", 
required = true)
+        private String messageTTLStr;

Review Comment:
   Will there be compatibility issues? Some scripts written by users cannot be 
used now because they do not contain units.
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to