BurningCN commented on issue #8403:
URL: https://github.com/apache/dubbo/issues/8403#issuecomment-891701482
尝试把serviceUrl加上一个port,registryUrl的check改为true,最终目的你要满足内部代码判定check等于true的条件
---原始邮件---
发件人: ***@***.***>
发送时间: 2021年8月3日(周二) 下午5:41
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [apache/dubbo] 关于dubbo.registry.check=false的疑问 (#8403)
@BurningCN
我把代码setUp()方法中的:
public class FailbackRegistryTest {
static String service;
static URL serviceUrl;
static URL registryUrl;
MockRegistry registry;
private int FAILED_PERIOD = 200;
private int sleeptime = 100;
private int trytimes = 5;
/** * @throws java.lang.Exception */ @BeforeEach public void setUp()
throws Exception { service = "org.apache.dubbo.test.DemoService";
serviceUrl = URL.valueOf("remote://127.0.0.1/demoservice?method=get");
registryUrl =
URL.valueOf("http://1.2.3.4:9090/registry?check=false&file=N/A").addParameter(REGISTRY_RETRY_PERIOD_KEY,
String.valueOf(FAILED_PERIOD)); }
中的check=false和check=true都测试了一下,,,控制台输出结果是一样的,没有什么区别。
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
--
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]