[Bug Report] Methods selectInstances
and selectOneHealthyInstance
of NacosNamingService
never trigger subscribe
action
#10800
Labels
status/duplicate
This issue or pull request already exists
Describe the bug
Methods
selectInstances
andselectOneHealthyInstance
ofNacosNamingService
never triggersubscribe
action.Event if parameter
subscribe
istrue
.Expected behavior
Both methods should get newlest serviceinfo from nacos server.
Actually behavior
Always get outdated serviceinfo from local.
How to Reproduce
Steps to reproduce the behavior:
provider
.consumer
) and subscribeprovider
from nacos server.consumer
andprovider
.provider
app, bug chang ip or port of this app;consumer
app, and then getprovider
serviceinfo from nacos-server byNacosNamingService.selectInstances(subscribe=true)
or `NacosNamingService.selectOneHealthyInstance(subscribe=true).The text was updated successfully, but these errors were encountered: