aloyszhang commented on a change in pull request #13796:
URL: https://github.com/apache/pulsar/pull/13796#discussion_r816754097
##########
File path:
pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdNamespaces.java
##########
@@ -892,7 +897,38 @@ void run() throws PulsarAdminException {
throw new ParameterException("--bundle and --bundle-type are
mutually exclusive");
}
bundle = bundleType != null ? bundleType.toString() : bundle;
- getAdmin().namespaces().splitNamespaceBundle(namespace, bundle,
unload, splitAlgorithmName);
+ getAdmin().namespaces().splitNamespaceBundle(
+ namespace, bundle, unload, splitAlgorithmName,
splitBoundaries);
+ }
+ }
+
+ @Parameters(commandDescription = "Get the positions for one or more
topic(s) in a namespace bundle")
+ private class GetTopicHashPositions extends CliCommand {
+ @Parameter(description = "tenant/namespace", required = true)
+ private java.util.List<String> params;
+
+ @Parameter(
+ names = { "--bundle", "-b" },
+ description = "{start-boundary}_{end-boundary} format
namespace bundle",
+ required = false)
+ private String bundle;
+
+ @Parameter(
+ names = { "--topic-list", "-tl" },
+ description = "The list of topics to get posisions in this
bunel",
Review comment:
Yes, both non-partitioned topics and partitioned-topics are supported
--
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]