You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "tohidemyname (via GitHub)" <gi...@apache.org> on 2023/06/29 00:34:33 UTC

[GitHub] [dubbo] tohidemyname opened a new issue, #12614: MergeableClusterInvoker can fail to log unavailable providers

tohidemyname opened a new issue, #12614:
URL: https://github.com/apache/dubbo/issues/12614

   The code is as follows:
   
   protected Result doInvoke(Invocation invocation, List<Invoker<T>> invokers, LoadBalance loadbalance) throws RpcException {
     ...
     if (invoker.isAvailable()) {
                       try {
                           return invoker.invoke(invocation);
                       } catch (RpcException e) {
                           if (e.isNoInvokerAvailableAfterFilter()) {
                               log.debug("No available provider for service" + getUrl().getServiceKey() + " on group " + invoker.getUrl().getParameter(GROUP_KEY) + ", will continue to try another group.");
                           } else {
                               throw e;
                           }
                       }
                   }
              return invokers.iterator().next().invoke(invocation);
           }
        ....
        Map<String, Result> results = new HashMap<>();
           for (final Invoker<T> invoker : invokers) {
               RpcInvocation subInvocation = new RpcInvocation(invocation, invoker);
               subInvocation.setAttachment(ASYNC_KEY, "true");
               results.put(invoker.getUrl().getServiceKey(), invoker.invoke(subInvocation));
           }
        ...
   }
   
   The first invoke is put inside a try statement: 
     return invoker.invoke(invocation);
   
   However, the other invokes are not:
   
      return invokers.iterator().next().invoke(invocation);
   results.put(invoker.getUrl().getServiceKey(), invoker.invoke(subInvocation));
   
   If the error happens in the latter two invokes, the problem will not be logged. 
   
   
      


-- 
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: notifications-unsubscribe@dubbo.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] tohidemyname commented on issue #12614: MergeableClusterInvoker can fail to log unavailable providers

Posted by "tohidemyname (via GitHub)" <gi...@apache.org>.
tohidemyname commented on issue #12614:
URL: https://github.com/apache/dubbo/issues/12614#issuecomment-1622754287

   Here is the pull request. https://github.com/apache/dubbo/pull/12675


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] AlbumenJ commented on issue #12614: MergeableClusterInvoker can fail to log unavailable providers

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #12614:
URL: https://github.com/apache/dubbo/issues/12614#issuecomment-1617563139

   Would you pls submit a PR to fix?


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] MergeableClusterInvoker can fail to log unavailable providers [dubbo]

Posted by "CrazyHZM (via GitHub)" <gi...@apache.org>.
CrazyHZM commented on issue #12614:
URL: https://github.com/apache/dubbo/issues/12614#issuecomment-1870964279

   @tohidemyname 
   Is there any progress?


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] MergeableClusterInvoker can fail to log unavailable providers [dubbo]

Posted by "CrazyHZM (via GitHub)" <gi...@apache.org>.
CrazyHZM closed issue #12614: MergeableClusterInvoker can fail to log unavailable providers
URL: https://github.com/apache/dubbo/issues/12614


-- 
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: notifications-unsubscribe@dubbo.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org