LinHtao commented on issue #1860: 升级到2.6.1版本后,重复调用问题 URL: https://github.com/apache/incubator-dubbo/issues/1860#issuecomment-393425612 感谢您的解答, 很抱歉, 我使用的版本是2.6.0 ,针对此次问题, 我也重新跟了一下源码, ` int len = getUrl().getMethodParameter(invocation.getMethodName(), Constants.RETRIES_KEY, Constants.DEFAULT_RETRIES) + 1;` 在使用注解的情况下, 我不配置retries的参数, 返回结果是3, (@Service源码中有这么一句int retries() default 0;), 这与操作有所不符. 若我使用注解的情况下设定retries=0, `@Service(version = "1.0.0",interfaceName="**.ICustomService",timeout=15000,retries =0,delay = -1)` 在重新看len的值 ` int len = getUrl().getMethodParameter(invocation.getMethodName(), Constants.RETRIES_KEY, Constants.DEFAULT_RETRIES) + 1;` 此时返回的结果依旧是3, 这不是我想要的. 我再次尝试 `@Service(version = "1.0.0",interfaceName="**.ICustomService",timeout=15000,retries =-1,delay = -1)` 那么这结果倒是令我另外 `` int len = getUrl().getMethodParameter(invocation.getMethodName(), Constants.RETRIES_KEY, Constants.DEFAULT_RETRIES) + 1;` ` 此时的返回值居然是0, 这才是我想要的结果 再次感谢!,
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
