Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

PickFirstLeafLoadBalancer may get stuck in Idle on backend address change

オープン
#12,395 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java

調査の方向性

core/src/main/java/io/grpc/internal/PickFirstLeafLoadBalancer.java から始め、resolver の更新、subchannel の削除、channel の状態、Idle picker、およびレポートで関連付けられている ExitIdle パスに焦点を当てます。参照されている grpc-go の修正からイベントシーケンスを再現または追跡し、利用可能であれば既存の PickFirstLeafLoadBalancer テストを調査します。バックエンドアドレスの変更によって、ロードバランサーが新しいエンドポイントに再接続せずに IDLE のままになることがない状態になれば完了です。

索引モデルが issue の本文から書いたものです。

説明

A bug was found in the new pickfirst balancer in gRPC Go which can cause the balancer to get stuck in IDLE state: https://github.com/grpc/grpc-go/pull/8615.

The implementation of the pickfirst LB in Java is similar, so it may suffer from the same issue. The order of events that lead to the bug is as follows:

  1. Existing connection breaks, the balancer requests re-resolution and reports IDLE. PF updates the channel state to IDLE with an Idle picker.
  2. An RPC is made, triggering the balancer to exit idle through the picker. The balancer attempts to re-connect the failed subchannel.
  3. The resolver produces a new endpoint list, removing the endpoint used by the existing subchannel. PF removes the existing subchannel. Since the balancer didn't update the channel state to CONNECTING yet, pickfirst thinks that it's still in IDLE and doesn't start connecting to the new endpoints.
  4. New RPC requests trigger the idle picker, but it's a no-op since it only triggers the balancer's ExitIdle method once.
主要言語
Java
スター
12.1k
フォーク
4k
平均マージ
2日 3時間
マージ済み PR(30日)
32

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

grpc/grpc-java のほかの issue

grpc/grpc-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。