ssi-dk / ssi-dk/SCDB

Locks are not exception safe

Open
#233 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug ChatGPT triage
Dominant language
R
Stars
8
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
Locks are not exception-safe. update_snapshot() and delta_load() acquire locks but only release them at normal-function exits. Any error or interrupt between lock and unlock can leave stale locks.

To Reproduce
N/A

Expected behaviour
N/A

Screenshots
N/A

Provide output from sessionInfo()
N/A

  • I have checked that the bug is not already described in open issues

Additional context
N/A

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the update_snapshot() and delta_load() entry points and tracing where each acquires and releases locks. Confirm the error and interrupt paths, then verify that every exit leaves no stale lock while preserving normal operation.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.