grpc-ecosystem / grpc-ecosystem/grpc-spring
net.devh.boot.grpc.client.nameresolver.DiscoveryClientNameResolver#needsToUpdateConnections
- Dominant language
- Java
- Stars
- 3.7k
- Forks
- 858
- PR merge metrics
- No merged PRs in 30d
Description
nacos NameResolver can not analyze metadata.for example,i change the weight of serviceinstance on nacos consoleui,but needsToUpdateConnections compare host and port,never care the weight。
i suggest make md5 for instanceList,this is a quick Comparators
Contributor guide
Research direction
Start at net.devh.boot.grpc.client.nameresolver.DiscoveryClientNameResolver#needsToUpdateConnections and trace how Nacos instance metadata is compared. Reproduce the case where a service instance's weight changes while its host and port remain the same, then verify that the resolver detects the metadata change and updates connections appropriately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- grpc, java, spring-boot
- Domain
- api, backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 40/100