grpc / grpc/grpc-java

GrpclbLoadBalancer should have full control over the lifecycle of StopWatch

Aperta
#5,534 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
code health
Lingua principale
Java
Stelle
12.1k
Fork
4k
Merge medio
2g 17h
PR unite (30g)
37

Descrizione

Would be good to add another `GrpclbLoadBalancer` constructor without the `StopWatch` argument. The old constructor is just `@VisibleForTesting`, and `GrpclbLoadBalancerProvider` will call the new constructor. In this way, `GrpclbLoadBalancer` can have full control over the lifecycle of the `StopWatch`.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reading GrpclbLoadBalancer and GrpclbLoadBalancerProvider, focusing on the existing constructor and StopWatch ownership. Add the provider-facing constructor while retaining the testing constructor, then verify that the load balancer controls the StopWatch lifecycle as intended.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
grpc, java
Ambito
networking
Tipo di issue
Refactoring
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.