You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by "mistyzyq (via GitHub)" <gi...@apache.org> on 2023/02/23 11:08:47 UTC

[GitHub] [incubator-eventmesh] mistyzyq opened a new issue, #3248: [Bug] MQClientException: The AdminExt service state not OK, maybe started once, SHUTDOWN_ALREADY

mistyzyq opened a new issue, #3248:
URL: https://github.com/apache/incubator-eventmesh/issues/3248

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Environment
   
   Windows
   
   ### EventMesh version
   
   master
   
   ### What happened
   
   The RocketMQAdmin#getTopic method can only be called once, all subsequent calls will get this error:
   org.apache.rocketmq.client.exception.MQClientException: The AdminExt service state not OK, maybe started once, SHUTDOWN_ALREADY\nSee http://rocketmq.apache.org/docs/faq/ for further details.
   
   I read the source code cursoryly, in RocketMQAdmin.java, in the follow code, the _adminExt_ saves it's state and can only be _start_ once, but here we _start_ and _shutdown_ every time.
   ```
       @Override
       public List<TopicProperties> getTopic() throws Exception {
           try {
               adminExt.start();
               List<TopicProperties> result = new ArrayList<>();
   
               Set<String> topicList = adminExt.fetchAllTopicList().getTopicList();
               for (String topic : topicList) {
                   long messageCount = 0;
                   TopicStatsTable topicStats = adminExt.examineTopicStats(topic);
                   HashMap<MessageQueue, TopicOffset> offsetTable = topicStats.getOffsetTable();
                   for (TopicOffset topicOffset : offsetTable.values()) {
                       messageCount += topicOffset.getMaxOffset() - topicOffset.getMinOffset();
                   }
                   result.add(new TopicProperties(
                       topic, messageCount
                   ));
               }
   
               result.sort(Comparator.comparing(t -> t.name));
               return result;
           } finally {
               adminExt.shutdown();
           }
       }
   ```
   
   ### How to reproduce
   
   1. startup eventmesh-runtime, and run dashboard
   2. open dashboard page in brower, and click the Topic menu, the page url is: http://localhost:3000/topic
   3. an red error toast shows: Failed to fetch the list of topics \ Unable to connect to the EventMesh daemon
   
   ### Debug logs
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!


-- 
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@eventmesh.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org


Re: [I] [Bug] MQClientException: The AdminExt service state not OK, maybe started once, SHUTDOWN_ALREADY (eventmesh)

Posted by "Pil0tXia (via GitHub)" <gi...@apache.org>.
Pil0tXia commented on issue #3248:
URL: https://github.com/apache/eventmesh/issues/3248#issuecomment-2074669461

   May you please help check if this problem still exists in 1.10.0? I've never seen problems like this before.


-- 
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: issues-unsubscribe@eventmesh.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org


Re: [I] [Bug] MQClientException: The AdminExt service state not OK, maybe started once, SHUTDOWN_ALREADY (eventmesh)

Posted by "Pil0tXia (via GitHub)" <gi...@apache.org>.
Pil0tXia closed issue #3248: [Bug] MQClientException: The AdminExt service state not OK, maybe started once, SHUTDOWN_ALREADY
URL: https://github.com/apache/eventmesh/issues/3248


-- 
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: issues-unsubscribe@eventmesh.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org


Re: [I] [Bug] MQClientException: The AdminExt service state not OK, maybe started once, SHUTDOWN_ALREADY (eventmesh)

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #3248:
URL: https://github.com/apache/eventmesh/issues/3248#issuecomment-2070571126

   It has been 90 days since the last activity on this issue. Apache EventMesh values the voices of the community. Please don't hesitate to share your latest insights on this matter at any time, as the community is more than willing to engage in discussions regarding the development and optimization directions of this feature.
   
   If you feel that your issue has been resolved, please feel free to close it. Should you have any additional information to share, you are welcome to reopen this issue.


-- 
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: issues-unsubscribe@eventmesh.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org


Re: [I] [Bug] MQClientException: The AdminExt service state not OK, maybe started once, SHUTDOWN_ALREADY (eventmesh)

Posted by "Pil0tXia (via GitHub)" <gi...@apache.org>.
Pil0tXia commented on issue #3248:
URL: https://github.com/apache/eventmesh/issues/3248#issuecomment-2074677215

   It seems that this issue has been fixed by https://github.com/apache/eventmesh/pull/3898. Please feel free to reopen it if the problem still exists.


-- 
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: issues-unsubscribe@eventmesh.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org