You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/05/13 12:17:38 UTC

[GitHub] [servicecomb-java-chassis] hypggg opened a new issue #2381: "message":"Unexpected consumer error, please check logs for details"

hypggg opened a new issue #2381:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2381


   调用场景:路由服务转发到目标服务。
   报错情况:重新发布目标服务后,就报"message":"Unexpected consumer error, please check logs for details",需要重启路由服务才能好使。
   错误信息如下:
   2021-05-13 12:15:58,604Z(65581731):DEBUG{}[vert.x-eventloop-thread-1#15]-->Using retry handler org.apache.servicecomb.loadbalance.DefaultRetryExtensionsFactory$1 for microservice cmconsoleservice.
   2021-05-13 12:15:58,604Z(65581731):INFO{}[vert.x-eventloop-thread-1#15]-->Found SPI service org.apache.servicecomb.router.custom.RouterHeaderFilterExt, count=0.
   2021-05-13 12:15:58,605Z(65581732):DEBUG{}[vert.x-eventloop-thread-1#15]-->route management match rule success: PolicyRuleItem{precedence=1, match=null, route=[RouteItem{weight=100, currentWeight=0, tags={version=2021.05.05.2126}, tagitem=org.apache.servicecomb.router.model.TagItem@2bc555f9}], total=null, weightLess=false}
   2021-05-13 12:15:58,605Z(65581732):DEBUG{}[vert.x-eventloop-thread-1#15]-->route management can not match any rule and route the latest version
   2021-05-13 12:15:58,605Z(65581732):DEBUG{}[vert.x-eventloop-thread-1#15]-->route management distribute rule success: []
   2021-05-13 12:15:58,605Z(65581732):WARN{}[vert.x-eventloop-thread-1#15]-->There are not servers exist after filtered by class org.apache.servicecomb.router.custom.RouterServerListFilter.
   2021-05-13 12:15:58,605Z(65581732):ERROR{SERVICECOMB_TRACE_ID=609d187e56f0bbb1-16348}[vert.x-eventloop-thread-1#15]-->Invoke all server failed. Operation CONSUMER  cmconsoleservice.systemController.listMenus, e=cause:ClientException,message:Load balancer does not have available server for client: default
   
   
   


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

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



[GitHub] [servicecomb-java-chassis] hypggg closed issue #2381: "message":"Unexpected consumer error, please check logs for details"

Posted by GitBox <gi...@apache.org>.
hypggg closed issue #2381:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2381


   


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

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



[GitHub] [servicecomb-java-chassis] liubao68 closed issue #2381: "message":"Unexpected consumer error, please check logs for details"

Posted by GitBox <gi...@apache.org>.
liubao68 closed issue #2381:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2381


   


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

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



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2381: "message":"Unexpected consumer error, please check logs for details"

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #2381:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2381#issuecomment-841081231


   AbstractRouterDistributor
   
   ```
     public void initLatestVersion(String serviceName, List<T> list) {
       if (RouterRuleCache.getServiceInfoCacheMap().get(serviceName).getLatestVersionTag() != null) {
         return;
       }
      ... ....
       TagItem tagitem = new TagItem(latestVersion);
       RouterRuleCache.getServiceInfoCacheMap().get(serviceName).setLatestVersionTag(tagitem);
     }
   ```
   
   this logic is not correct
   1. list is old version, old version is cached
   2. list is new versioin, will not update latest


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

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