paradiseidler opened a new issue, #14868: URL: https://github.com/apache/dubbo/issues/14868
### Pre-check - [X] I am sure that all the content I provide is in English. ### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar issues. ### Apache Dubbo Component Java SPI Extensions (apache/dubbo-spi-extensions) ### Dubbo Version Dubbo3.3.0 JDK 17 ### Steps to reproduce this issue While rewriting the unit test for the testAddListener() method under the dubbo-spi-extension Consul configuration center, it was found that the unit test could not reach the code where the consulListener processes the notification listener. The same issue occurred with previous tests as well.  ### What you expected to happen When adding a listener to a node in the Consul configuration center, the newValues collection parameter in the notify method of the ConsulDynamicConfiguration class seems to have the key in a relative path format without the leading "/"(eg:dubbo/config/dubbo/foo), while the defined normalizedKey uses the absolute path with the "/"(eg:/dubbo/config/dubbo/foo), causing a mismatch between the two string values and leading to the failure of event notifications to the listener.  ### Anything else _No response_ ### Are you willing to submit a pull request to fix on your own? - [X] Yes I am willing to submit a pull request on my own! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
