NPE in canCompleteSwap if path doesn't exists
評価
調査の方向性
helix-core/src/main/java/org/apache/helix/manager/zk/ZKHelixAdmin.java の 552-555 行目から始め、canCompleteSwap REST エントリーポイントを追跡します。パスが破損しているか存在しないケースを再現し、その後、操作が NPE なしで true を返すことを確認します。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
Currently when we call baseAccessor.getChildNames and if the path doesnt exists, swapOutResources is null, and we iterate over this which results in NPE
"error" : "Cannot invoke \"java.util.List.iterator()\" because \"swapOutResources\" is null"
}
To Reproduce
Hit canCompleteSwap Rest and manually corrupt the path.
Expected behavior
NPEs should be handled, it should return true in this case as well.
Additional context
Add any other context about the problem here.
- 主要言語
- Java
- スター
- 505
- フォーク
- 258
- 平均マージ
- 4日 20時間
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/helix のほかの issue
-
Four TestConstraintBasedAlgorithm tests pass when nothing is thrown対応中かも @sharanggupta が今日担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
-
Helix ZkClient times out after successful ZooKeeper SASL DIGEST-MD5 authentication対応中かも @adityaanikam が 43 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
-
Legacy IZkStateListenerI0ItecImpl causes zombie participants by discarding session IDs対応中かも @LZD-PratyushBhatt が 457 日前に担当しました。 オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
似ている issue
-
bug documentation good first issue help wanted priority low size XS
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
martin-francois/symphony-trello#1351 ·
メンテナーはふだん 1 日以内に返信
-
Add test coverage for ConvertUtil.parseDate() with NULL input対応中かも @mirajul-mollah7 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
eclipse-sw360/sw360#4792 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
aws/aws-emulator#30 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 4 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100