grpc-ecosystem / grpc-ecosystem/grpc-spring

net.devh.boot.grpc.client.nameresolver.DiscoveryClientNameResolver#needsToUpdateConnections

Open
#647 10 comments 0 reactions 0 assignees View on GitHub
bug enhancement
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.