aaa489 opened a new issue #9338:
URL: https://github.com/apache/dubbo/issues/9338


   <!-- If you need to report a security issue please visit 
https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) 
of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 2.7.8
   * Operating System version: windows
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
   1. 使用dubbo admin服务统计功能的时候发现报错,大概是service not found
   
![image](https://user-images.githubusercontent.com/23420362/144187737-b87872f0-d8a5-4c21-b9a3-c7e1326779e9.png)
   2. 查看源码发现调的是的MetricsService的getMetricsByGroup接口
   
![image](https://user-images.githubusercontent.com/23420362/144187830-3ae3450f-a124-4e57-b8a3-53a173374a5b.png)
   3. 
该接口是带参数的,所以请求的时候会有参数类型,而对于有参数类型的请求,在做decode的时候会去ApplicationModel的ServiceRepository中判断是否存在,不存在则抛service
 not found异常
   
![image](https://user-images.githubusercontent.com/23420362/144188061-a03a6fe9-2b54-4b52-95e2-98e98ac7cd72.png)
   4. 正常暴露服务的时候会服务注册到ApplicationModel的ServiceRepository
   
![image](https://user-images.githubusercontent.com/23420362/144188330-a271facb-1010-4bdd-b0ba-eb5f1bd798ec.png)
   5. 而MetricsService确并没有这个逻辑
   
   ### Expected Behavior
   
   MetricsService应该注册到ApplicationModel的ServiceRepository
   
   ### Actual Behavior
   
   ApplicationModel的ServiceRepository没有MetricsService,导致处理该接口请求抛异常
   


-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to