commercetools / commercetools/sphere-scala-libs
Memoizer hangs in some `class` initializations
- Dominant language
- Scala
- Stars
- 22
- Forks
- 7
- Avg merge
- 18h 43m
- Merged PRs (30d)
- 20
Description
It can happen that the `Memoizer` blocks and never finishes on https://github.com/commercetools/sphere-scala-libs/blob/main/util/src/main/scala/Memoizer.scala#L20 while creating ´JSON´ instances. It looks to me like a concurrency issue, but I don't know how to reproduce the issue in a general way (can't share my code).
Contributor guide
No contributing guide indexed for this repository
Research direction
Read util/src/main/scala/Memoizer.scala around line 20 and inspect how JSON instances are created during class initialization. Establish a reproducible hang or regression test for the reported blocking behavior, then use it to verify the Memoizer no longer hangs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100