You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/12/14 02:26:42 UTC

[GitHub] [rocketmq] MatrixHB opened a new issue #3642: Specific GID and TID cannot be displayed for MQ instance with namespace

MatrixHB opened a new issue #3642:
URL: https://github.com/apache/rocketmq/issues/3642


   
   **BUG REPORT**
   
   1. Please describe the issue you observed:
   
   - What did you do (The steps to reproduce)?
   
   - What did you expect to see?
   
   - What did you see instead?
   
   After Version 3.8, when troubleshooting using admin command like 'mqadmin consumerProgress' or 'mqadmin statsall', the specific topicID and groupID cannot be displayed for MQ instance with namespace, replaced by the ID of the MQ instance. However, the topic and group for MQ instance without namespace can be displayed normally.
   
   ![bug1](https://user-images.githubusercontent.com/23614576/145919582-48f086b0-a967-4942-8f7c-b28a2cccd0ed.png)
   
   2. Please tell us about your environment:
   
   3. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):
   
   It is confirmed that the topicID and groupID for MQ instance with namespace is too long to be truncated, so only the header part of topicID or groupID can be displayed.
   
   {instanceId}%{topic}
   e.g.  MQ_INST_138015630679****_BcZwWZ9k%Topic-test
   
   Code involved: org.apache.rocketmq.tools.command.stats.StatsAllSubCommand#printTopicDetail
   
   ```
   System.out.printf("%-32s  %-32s %12d %11.2f %11.2f %14d %14d%n",
                           UtilAll.frontStringAtLeast(topic, 32),
                           UtilAll.frontStringAtLeast(group, 32),
                           accumulate,
                           inTPS,
                           outTPS,
                           inMsgCntToday,
                           outMsgCntToday
                       );
   ```
   
   


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] Git-Yang commented on issue #3642: Specific GID and TID cannot be displayed for MQ instance with namespace

Posted by GitBox <gi...@apache.org>.
Git-Yang commented on issue #3642:
URL: https://github.com/apache/rocketmq/issues/3642#issuecomment-993254024


   Could you submit a PR to resolve it?


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] MatrixHB closed issue #3642: Specific GID and TID cannot be displayed for MQ instance with namespace

Posted by GitBox <gi...@apache.org>.
MatrixHB closed issue #3642:
URL: https://github.com/apache/rocketmq/issues/3642


   


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org