Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

XdsClientImpl inconsistently includes nodeId

Aperta
#12,750 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@shivaspeaks ci sta già lavorando.

Dal 9/4/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement

When creating https://github.com/grpc/grpc-java/pull/12749 I noticed that the error generated by XdsDependencyManager is:

Status{code=UNAVAILABLE, description=Error retrieving LDS resource the-service-name nodeID: node-id: NOT_FOUND: expected nodeID: node-id, cause=java.lang.IllegalArgumentException: a random exception...}

"nodeID: node-id" is repeated twice. XdsClientImpl adds it once, and XdsDependencyManager adds it again. XdsDependencyManager shouldn't be adding the node id from errors that come from XdsClient. But if you look at CdsLoadBalancer2Test from my PR, you'll see that "Timed out waiting for resource" errors don't have node id duplicated.

XdsClientImpl includes node id in all results originating from ResourceSubscriber.onError(), but it doesn't from onAbsent() and addWatcher(). Apparently it also forgets the absent error details in addWatcher(). We need to fix onAbsent() and errorDescription, and probably save the absent error in lastError for later use in addWatcher(). At that point we can remove the node id from XdsDependencyManager (when it gets the error from xds client; if it generates the error itself, it may still need to include the node id).

Lingua principale
Java
Stelle
12.1k
Fork
4k
Merge medio
2g 3h
PR unite (30g)
30

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di grpc/grpc-java

Tutte le issue di grpc/grpc-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.