Four TestConstraintBasedAlgorithm tests pass when nothing is thrown

オープン 初心者向け
#3,210 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@sharanggupta がすでに取り組んでいます。

2026年11月12日 から。

  • #3211 @sharanggupta による — オープン

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
85/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java
領域
testing

調査の方向性

helix-core で、名前が挙げられている4つの TestConstraintBasedAlgorithm テストと例外に関するアサーションを調べてください。各 calculate 呼び出しの後に失敗を検証するアサーションを追加し、期待される例外がスローされるためテストが引き続き成功することを確認するために、これらのテストを実行してください。

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

説明

testCalculateNoValidAssignment, testCalculateNoValidAssignmentFirstAndThenRecovery, testSortingEarlyQuitLackCapacity and testCalculateWithInvalidAssignmentForNodeCapacity in helix-core call algorithm.calculate(clusterModel) in a try and assert only inside catch (HelixRebalanceException ex). There is no Assert.fail() after the call, so they pass when calculate returns normally.

I have a branch that adds the Assert.fail(). All four still pass, so the exception is thrown today.

主要言語
Java
スター
505
フォーク
258
平均マージ
4日 20時間
マージ済み PR(30日)
3

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

apache/helix のほかの issue

apache/helix の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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