Storage lifecycle instances need a shutdown hook
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 50/100
Research direction
Start by locating the storage lifecycle implementations and the existing higher-level shutdown hook, then trace how context cancellation currently stops background goroutines. Define how storage implementations signal that their work has safely completed and how the caller waits for it. Done means the hook reliably blocks until storage background processes finish, including in tests.
Written by the indexing model from the issue text.
Description
Description
Instances of storage lifecycle objects usually create background goroutines to perform various operations asynchronously. Currently, these are generally signaled to exit via context cancellation.
This is mostly fine, but occasionally causes issues in tests when things run on longer than they should.
We already have a shutdown hook at the level above which enables the caller to block until work has finished on the entries they've added, it would be good to extend that to allow storage implementation to signal when their background processes have also safely completed.
- Dominant language
- Go
- Stars
- 238
- Forks
- 56
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 35
Contributor guide
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.
More from transparency-dev/tessera
-
transparency-dev/tessera#1181 · 1 comment · 1 assignee ·
-
transparency-dev/tessera#1179 · 1 comment · 1 assignee ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 55/100
transparency-dev/tessera#1152 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
transparency-dev/tessera#1123 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 76/100
transparency-dev/tessera#1098 ·
All issues in transparency-dev/tessera
Similar issues
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
blinklabs-io/bursa#904 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 comments ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100