Race Condition in LRU cache for references can lead to null references
まだ誰も着手していません。
評価
調査の方向性
ソースファイルもテストも指定されていません。まず referenceResolver のキャッシュ検索および投入経路を特定し、同時解決とキャッシュの eviction を伴う SUPPORT-33245 のシナリオを再現してください。LRU エントリが削除されたときに参照解決が null を返さなくなり、その race をカバーする回帰テストが含まれていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
The referenceResolver does occasionally resolve references to null.
The problem is, that the code, when resolving does first check which elements are already in the cache. It then fetches the "not yet in the cache" items and puts them there. This operation drops LRU items. Code still thinks that all items are in the cache and retrieves the references from the cache unchecked. Leading to null.
The symptom can be observed in SUPPORT-33245
To Reproduce
Steps to reproduce the behavior:
- Call
method with params - See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
- 主要言語
- Java
- スター
- 40
- フォーク
- 41
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
commercetools/commercetools-sync-java のほかの issue
-
Dependency Dashboardオープン
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
commercetools/commercetools-sync-java#1201 · コメント 4 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
-
Hacktoberfest
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
commercetools/commercetools-sync-java の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
oracle/javavscode#652 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
OpenAPITools/openapi-generator#25014 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
AloisSeckar/demos-java#380 ·