sunxi92 commented on a change in pull request #3761:
URL: https://github.com/apache/rocketmq/pull/3761#discussion_r794980389
##########
File path:
tools/src/main/java/org/apache/rocketmq/tools/command/acl/ClusterAclConfigVersionListSubCommand.java
##########
@@ -112,20 +112,19 @@ private void printClusterBaseInfo(
final DefaultMQAdminExt defaultMQAdminExt, final String addr) throws
InterruptedException, MQBrokerException, RemotingException,
MQClientException {
-
ClusterAclVersionInfo clusterAclVersionInfo =
defaultMQAdminExt.examineBrokerClusterAclVersionInfo(addr);
- DataVersion aclDataVersion =
clusterAclVersionInfo.getAclConfigDataVersion();
- String versionNum = String.valueOf(aclDataVersion.getCounter());
-
+ Map<String, DataVersion> aclDataVersion =
clusterAclVersionInfo.getAllAclConfigDataVersion();
DateFormat sdf = new SimpleDateFormat(UtilAll.YYYY_MM_DD_HH_MM_SS);
- String timeStampStr = sdf.format(new
Timestamp(aclDataVersion.getTimestamp()));
-
- System.out.printf("%-16s %-22s %-22s %-20s %-22s%n",
- clusterAclVersionInfo.getClusterName(),
- clusterAclVersionInfo.getBrokerName(),
- clusterAclVersionInfo.getBrokerAddr(),
- versionNum,
- timeStampStr
- );
+ for (Map.Entry<String, DataVersion> entry : aclDataVersion.entrySet())
{
Review comment:
done.
--
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]