Files
tasks/common/persistence/sql/sqlplugin/sqlite
David ReissandGitHub 12c24cc4e6 Ensure we don't open sqlite multiple times (#5532)
## What changed?
Sort sqlite connect attributes to ensure a deterministic string so the
sqlite pool logic works correctly.

## Why?
I noticed a lot of `database is locked (5) (SQLITE_BUSY)` errors when
using a local dev server, and tracked it down to multiple services
having separate connection to the db. The sqlite connection pool is
supposed to prevent this, but it depends on the mapping from
`ConnectAttributes` to a string being deterministic. The code that
constructed the string was iterating over a `map[string]string` without
sorting the keys making it nondeterministic.

## How did you test it?
local testing, saw no more SQLITE_BUSY errors
2024-03-14 10:57:44 -07:00
..
2022-04-13 15:29:38 -07:00
2022-04-13 15:29:38 -07:00
2022-04-13 15:29:38 -07:00
2023-06-09 10:36:38 -07:00