Skip to content

test(pool): tests for PoolEntryLock (#1683, item 1) - #1805

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
test/pool-entry-lock
Oct 25, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
test/pool-entry-lock

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Part of #1683 (item 1, the tests; _lock itself is left as it is until we decide whether to drop it).

PoolEntryLock is used by the PostgreSQL, MySQL and SQLite pools and had no tests. They pin: two callers for one key share one create(); different keys are created in parallel; a finished creation is forgotten; a failing create() fails every waiter and clears the entry; a create() that throws synchronously does not wedge the lock. Test-only. CI will run them.

@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 3fc298f into dev Oct 25, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant