Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Race Condition in LRU cache for references can lead to null references

オープン
#1,224 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
java
領域
backend

調査の方向性

ソースファイルもテストも指定されていません。まず 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:

  1. Call method with params
  2. 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 はありません

環境構築

はじめの一歩

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

commercetools/commercetools-sync-java のほかの issue

commercetools/commercetools-sync-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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