Skip to content

Wrong serviceName with Nacos protocol #6226

@AlbumenJ

Description

@AlbumenJ

Environment

  • Dubbo version: 2.7.7
  • Operating System version: Windows 10
  • Java version: jdk 11

Steps to reproduce this issue

  1. configure Nacos as registry protocol with service discovery
  2. subscribe instance
  3. subscribe exportedURL from remote

Actual Result

serviceName is encoded with groupName(DEFAULT_GROUP) in Nacos
Proper serviceName should be system, but now is DEFAULT_GROUP@@system

If there is an exception, please attach the exception trace:

org.apache.dubbo.remoting.RemotingException: Not found exported service: DEFAULT_GROUP@@system/org.apache.dubbo.metadata.MetadataService:1.0.0:20881 in [xxx:20881, system/org.apache.dubbo.metadata.MetadataService:1.0.0:20881, xxx:20881, xxx:20881], may be version or group mismatch , channel: consumer: /192.168.99.1:26812 --> provider: /192.168.99.1:20881, message:RpcInvocation [methodName=getExportedURLs, parameterTypes=[], arguments=[], attachments={input=180, path=org.apache.dubbo.metadata.MetadataService, dubbo=2.0.2, version=1.0.0, group=DEFAULT_GROUP@@system}]
	at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:265)
	at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:120)
	at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:100)
	at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:175)
	at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51)
	at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions