You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "JavaLionLi (via GitHub)" <gi...@apache.org> on 2024/01/27 05:44:05 UTC

[I] dubbo 3.2.10 本地元数据中心不生效 [dubbo]

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

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.2.10
   * Operating System version: xxx
   * Java version: 17
   
   ### Steps to reproduce this issue
   
   ![image](https://github.com/apache/dubbo/assets/31852897/7e9896bc-5ca5-4698-93a3-b6728dc7a683)
   元数据中心类型已经配置为了local
   debug看也是local
   但是依旧会报错 远程元数据中心不可用
   ![image](https://github.com/apache/dubbo/assets/31852897/69e4a922-7b32-4f45-8dc4-c9c23be85205)
   
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Behavior
   
   <!-- What do you expect from the above steps?-->
   
   ### Actual Behavior
   
   <!-- What actually happens? -->
   
   If there is an exception, please attach the exception trace:
   
   ```
   Just put your stack trace here!
   ```
   


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


Re: [I] dubbo 3.2.10 local metadata center not effective [dubbo]

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

   > According to the description of 3, that is to say, local storage cannot be used in any case, and remote storage is required. Is there a problem with this understanding?
   
   You are right


-- 
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] dubbo 3.2.10 本地元数据中心不生效 [dubbo]

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

   完整配置如下
   
   `dubbo:
     application:
       logger: slf4j
       # 元数据中心 local 本地 remote 远程 这里使用远程便于其他服务获取
       metadataType: local
       # 可选值 interface、instance、all,默认是 all,即接口级地址、应用级地址都注册
       register-mode: instance
       service-discovery:
         # FORCE_INTERFACE,只消费接口级地址,如无地址则报错,单订阅 2.x 地址
         # APPLICATION_FIRST,智能决策接口级/应用级地址,双订阅
         # FORCE_APPLICATION,只消费应用级地址,如无地址则报错,单订阅 3.x 地址
         migration: FORCE_APPLICATION
     # 注册中心配置
     registry:
       address: nacos://${spring.cloud.nacos.server-addr}
       group: DUBBO_GROUP
       parameters:
         namespace: ${spring.profiles.active}
     metadata-report:
       check: true
       reportMetadata: false
       reportDefinition: false
     # 消费者相关配置
     protocol:
       # 如需使用 Triple 3.0 新协议 可查看官方文档
       # 使用 dubbo 协议通信
       name: dubbo
       # dubbo 协议端口(-1表示自增端口,从20880开始)
       port: -1
     consumer:
       # 结果缓存(LRU算法)
       # 会有数据不一致问题 建议在注解局部开启
       cache: false
       # 支持校验注解
       validation: jvalidationNew
       # 调用重试 不包括第一次 0为不需要重试
       retries: 0
       # 初始化检查
       check: false`


-- 
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] dubbo 3.2.10 local metadata center not effective [dubbo]

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

   > 主要问题是 消费者根本没有来本地取元数据 而是去了远程中心取数据 远程中心里也有一大堆元数据 并没有把元数据存到本地
   
   1. Please comment in English because we want all the users know what we are talking about.
   2. Using of local or remote metadata or not is depend on provider side. If a provider only export in remote mode, consumer should use it.
   3. Except these, application level serivce discovery also require metadata center of save and read the mapping of interface name and application name.


-- 
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] dubbo 3.2.10 local metadata center not effective [dubbo]

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

   > `dubbo.application.metadataType` is only for application level service discovery. Beside this, some definition metadata are also need to report to metadata center which is enabled by default.
   
   我就是应用级服务发现啊 FORCE_APPLICATION 我已经关闭了 reportDefinition 应该是不会推送了才对啊


-- 
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] dubbo 3.2.10 local metadata center not effective [dubbo]

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

   > > 主要问题是 消费者根本没有来本地取元数据 而是去了远程中心取数据 远程中心里也有一大堆元数据 并没有把元数据存到本地
   > 
   > 1. Please comment in English because we want all the users know what we are talking about.
   > 2. Using of local or remote metadata or not is depend on provider side. If a provider only export in remote mode, consumer should use it.
   > 3. Except these, application level serivce discovery also require metadata center of save and read the mapping of interface name and application name.
   
   I have set local globally
   
   There is no data in the metadata center, and consumers can still start successfully.
   
   According to the description of 3, that is to say, local storage cannot be used in any case, and remote storage is required. Is there a problem with this understanding?


-- 
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] dubbo 3.2.10 local metadata center not effective [dubbo]

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

   主要问题是 消费者根本没有来本地取元数据 而是去了远程中心取数据 远程中心里也有一大堆元数据 并没有把元数据存到本地


-- 
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] dubbo 3.2.10 local metadata center not effective [dubbo]

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

   所以我觉得这块是有问题的 希望官方可以测一测 以前用local不启动生产者是无法启动消费者的 
   消费者启动的时候会去调用生产者的接口  现在升级了3.2.X以后 就再也不会请求生产者的接口了


-- 
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] dubbo 3.2.10 local metadata center not effective [dubbo]

Posted by "JavaLionLi (via GitHub)" <gi...@apache.org>.
JavaLionLi closed issue #13692: dubbo 3.2.10 local metadata center not effective
URL: https://github.com/apache/dubbo/issues/13692


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