[X] I am sure that all the content I provide is in English.
Search before asking
[X] I had searched in the issues 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!
Pre-check
Search before asking
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?
Code of Conduct