You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/02/10 06:39:41 UTC

[GitHub] [dubbo] genvyday commented on issue #9583: org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.shouldRegister是不是有bug?

genvyday commented on issue #9583:
URL: https://github.com/apache/dubbo/issues/9583#issuecomment-1034549804


   我也很困惑,测试的配置如下:
   <?xml version="1.0" encoding="UTF-8"?>
   <beans xmlns="http://www.springframework.org/schema/beans"
   	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   	xmlns:context="http://www.springframework.org/schema/context"
       xmlns:tx="http://www.springframework.org/schema/tx" 
       xmlns:aop="http://www.springframework.org/schema/aop" 
   	xmlns:p="http://www.springframework.org/schema/p"
   	xmlns:dubbo="http://dubbo.apache.org/schema/dubbo"     
   	xsi:schemaLocation="
   		http://www.springframework.org/schema/beans	
   		http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
   		http://www.springframework.org/schema/context 
   		http://www.springframework.org/schema/context/spring-context-3.0.xsd
   		http://www.springframework.org/schema/aop 
   		http://www.springframework.org/schema/aop/spring-aop-3.0.xsd 
   		http://www.springframework.org/schema/tx 
   		http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
   		http://dubbo.apache.org/schema/dubbo
   		http://dubbo.apache.org/schema/dubbo/dubbo.xsd">
   	<dubbo:application id="dubapp" name="dubtest">
   		<dubbo:parameter key="qos.enable" value="false"/>
   		<dubbo:parameter key="qos.accept.foreign.ip" value="false"/>
   		<dubbo:parameter key="qos.port" value="25678"/>
   		<dubbo:parameter key="threadname" value="da"/>
   	</dubbo:application>
   	<dubbo:registry id="dubzkregistry" simplified="true" protocol="zookeeper" file="false" address="172.16.2.132:2181?timeout=60000&amp;blockUntilConnectedWait=60" extra-keys="retries,ppwd,rtaddr" client="curator" group="dubbo" />
   	<dubbo:consumer check="false" p:threadname="dc" loadbalance="leastactive" retries="0"/>
   	<dubbo:provider id="dubprvdcfg" p:threadname="dp" loadbalance="leastactive" p:ppwd="${user.dir}" timeout="40000" retries="0" dynamic="true" />
   	<dubbo:protocol name="dubbo" p:threadname="dr" server="netty" port="-1" serialization="kryo" threads="300"/>
   	<bean id="acct.dumb" class="com.aip.acct.ipo.AcctDumbImp"/>
   	<dubbo:service interface="com.aip.acct.ipo.AcctDumbInf" ref="acct.dumb"/>
   </beans>
   
   结果如下:
   ![image](https://user-images.githubusercontent.com/20572626/153351490-b35e2185-5f65-4421-a3bf-de17f8597cda.png)
   


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