dapr / dapr/components-contrib
Two bugs in state.oracledatabase related to TTL
- Dominant language
- Go
- Stars
- 602
- Forks
- 580
- Avg merge
- 4d 9h
- Merged PRs (30d)
- 6
Description
There are two (small) bugs in the Oracle Database state store related to TTLs:
1. There's currently no "garbage collection" to delete expired records. See an example of how it's implemented in the SQLite state store: https://github.com/ItalyPaleAle/dapr-sqlite-statestore/blob/0800ba2a39d0e4967145865a6f799bfc52348b04/component/sqlite_dbaccess.go#L357-L358
2. When updating a record, the TLL column needs to be updated too: https://github.com/dapr/components-contrib/blob/d8c2ce47fdb49db8e9ba3ad825d0f9492c0e6f27/state/oracledatabase/oracledatabaseaccess.go#L202
Contributor guide
Research direction
Start by reading state/oracledatabase/oracledatabaseaccess.go, especially the update path, and compare the expired-record handling with component/sqlite_dbaccess.go at the referenced lines. Done means expired Oracle state records are removed and updating a record also updates its TTL column; check the existing Oracle state-store tests if available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100