-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Wrong serviceName with Nacos protocol #6226
Copy link
Copy link
Closed
Description
Environment
- Dubbo version: 2.7.7
- Operating System version: Windows 10
- Java version: jdk 11
Steps to reproduce this issue
- configure Nacos as registry protocol with service discovery
- subscribe instance
- 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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.