Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] Methods selectInstances and selectOneHealthyInstance of NacosNamingService never trigger subscribe action #10800

Closed
YunWZ opened this issue Jul 16, 2023 · 1 comment
Labels
status/duplicate This issue or pull request already exists

Comments

@YunWZ
Copy link
Contributor

YunWZ commented Jul 16, 2023

Describe the bug
Methods selectInstances and selectOneHealthyInstance of NacosNamingService never trigger subscribe action.

Event if parameter subscribe is true.

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:

  1. start an application and register to nacos server, called provider.
  2. start other application(called consumer) and subscribe provider from nacos server.
  3. stop consumer and provider.
  4. now, restart provider app, bug chang ip or port of this app;
  5. restart consumer app, and then get provider serviceinfo from nacos-server by NacosNamingService.selectInstances(subscribe=true) or `NacosNamingService.selectOneHealthyInstance(subscribe=true).
@Bo-Qiu
Copy link
Contributor

Bo-Qiu commented Jul 16, 2023

Thanks for your report, this is in line with issue #10585, I've created a PR to solve it.

@KomachiSion KomachiSion added the status/duplicate This issue or pull request already exists label Jul 17, 2023
@KomachiSion KomachiSion closed this as not planned Won't fix, can't repro, duplicate, stale Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants