Dynamometer does not support negative block id's
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- java
調査の方向性
XMLParser.java から始めて、負のブロック ID がどのようにパースされるかを理解し、その後 SimulatedMultiStorageFSDataset.java とそのブロックからストレージへの検索処理を調べます。負の ID によって有効なシミュレートされたストレージが選択され、ArrayIndexOutOfBoundsException を発生させることなく、適切なブロックプールの map を通じて取得されることを確認します。シミュレートされた DataNodes によって負の ID を持つブロックが報告されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Dynamometer does NOT support negative block id's, which results in blocks with negative id's never being reported by any simulated DataNode.
A change has been made to XMLParser.java in our branch of Dynamometer so that negative block id's are also dealt with.
Due to the change made above, we have to change SimulatedMultiStorageFSDataset.java as well.
In Dynamometer, each DataNode has more than 1 SimulatedStorage to manage, and this following Map is maintained by each SimulatedStorage in a simulated DataNode. Moreover, a SimulatedStorage could be involved in multiple blockpools.
Map<blockpool id, Map<block, block information>>
To access a given block (associated with a blockpool id) on a simulated DataNode, we have to
( i) determine which SimulatedStorage this given block belongs to according to its block id, and then
(ii) use the associated blockpool id to retrive Map<block, block information> corresponding to the block to be accessed.
The SimulatedStorage's managed by a DataNode are arranged on an ArrayList and each SimulatedStorage on the ArrayList could be accessed by a "non-negative" integer upper-bounded by the size of that ArrayList, exclusive. To determine the SimulatedStorage a given block belongs to, the original Dynamometer simply uses (block id % number of simulated storages) as the index to access the ArrayList mentioned above. Hence, once we have a negative block id, an ArrayIndexOutOfBoundsException will be triggered. Some changes have been made in SimulatedMultiStorageFSDataset.java so that a negative block id is properly taken care of.
- 主要言語
- Java
- スター
- 134
- フォーク
- 34
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
linkedin/dynamometer のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
linkedin/dynamometer#106 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
linkedin/dynamometer#104 · コメント 4 件 ·
-
Improve Dynamometer compatibility with the 2.x line再び着手できるかも @xkrogen が 2637 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
linkedin/dynamometer#101 · コメント 2 件 · 担当者 1 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
linkedin/dynamometer#100 · コメント 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
linkedin/dynamometer#81 · コメント 1 件 ·
linkedin/dynamometer の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug new windows
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
GantMan/jail-monkey#380 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
objectionary/jucs#145 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
objectionary/lints#1559 ·
メンテナーはふだん 2 日以内に返信