VEuPathDB / VEuPathDB/lib-compute-platform
Race condition with job status checks
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 1
- Forks
- 0
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 3
Description
There is a race condition here between these 2 lines:
The status may change between the queue db check on line 195 and the s3 check on line 199, which could cause this exact issue.
Originally posted by @Foxcapades in https://github.com/VEuPathDB/lib-compute-platform/issues/48#issuecomment-1540235548
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading lib/src/main/kotlin/org/veupathdb/lib/compute/platform/AsyncPlatform.kt around lines 195 and 199. Trace how the queue database status and S3 status are checked, then investigate the transition described in the issue. Done means the status checks no longer produce the reported race-condition failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100