Outlier detection: unset `failure_percent_ejection` results in 100% instead of 0%
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 88/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- java
調査の方向性
xds/src/main/java/io/grpc/xds/EnvoyServerProtoData.javaで失敗率の処理箇所を読み、未設定時の動作を、その上にある成功率の処理およびissueにリンクされたA50仕様と比較してください。失敗率のデフォルト値を仕様に合わせて更新し、値が未設定の場合は失敗率による排除が無効になり、明示的に値を指定した場合は従来の動作が維持されることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
success_rate_ejection.enforcement_percentage defaults to 100% per Envoy and our spec:
This is implemented (correctly) here:
But failure_percent_ejection should default to zero instead (i.e. disable checking when unset):
This is implemented (incorrectly) here:
Note that it's a copy/paste of the enforcement_percentage above it, meaning it is only disabled if it is explicitly set to zero.
When we go to actually build the enforcer, failurePercentage is non-null:
But enforcement percentage is null, so the default percentage of 100 is applied:
The fix appears to be trivial. In EnvoyServerProtoData.java, change the check to:
if (!envoyOutlierDetection.hasEnforcingFailurePercentage()
|| envoyOutlierDetection.getEnforcingFailurePercentage().getValue() == 0) {
failurePercentageEjection = null;
} else {
// ...
- 主要言語
- Java
- スター
- 12.1k
- フォーク
- 4k
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 43
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
grpc/grpc-java のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
alts: AuthorizationUtil.clientAuthorizationCheck compares the peer service account case-sensitively対応中かも @hidingmyname が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
grpc/grpc-java#13156 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Binary log config: `-service/*` exclusion is accepted and silently turned into a per-service rule, so the service is still logged対応中かも @hidingmyname が 2 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
grpc/grpc-java#13155 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
SpiffeUtil.loadTrustBundleFromFile accepts invalid trust domain names (e.g. `UPPER.example.com`, `invalid#character`) as bundle map keys対応中かも @hidingmyname が 2 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
grpc/grpc-java#13154 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
xds: EDS resource is not NACKed when locality weights at one priority sum to more than uint32 max対応中かも @hidingmyname が 2 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
grpc/grpc-java#13153 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
account bug exercise lecture programming user interface
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ls1intum/Artemis#14512 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
swiftlang/swift-java#955 ·
メンテナーはふだん 1 日以内に返信
-
Good First Issue
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
hiero-ledger/hiero-sdk-java#3044 ·
メンテナーはふだん 1 日以内に返信
-
A second build without clean fails in resources-optimizer-maven-plugin because minified files are minified again対応中かも @papegaaij が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
hermes-queue
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
chrisalunlloyd2-sudo/mindpalace#337 ·
メンテナーはふだん 1 日以内に返信