Skip to content

Use set for provider worker ETS table - #558

Merged
maennchen merged 1 commit into
mainfrom
fix-provider-worker-ets-set
Oct 3, 2026
Merged

maennchen merged 1 commit into
mainfrom
fix-provider-worker-ets-set

Conversation

@maennchen

Copy link
Copy Markdown
Member

The provider configuration worker created its ETS table as a bag. After a provider configuration or key set changed, the table held the old and the new value under the same key. Reads expect exactly one object, so every read then went through a gen_server:call to the worker. The table also grew with each change. The table is now a set, so an insert replaces the old value. A new test changes the discovery document and checks that the table holds only the new configuration.

Fixes #553

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@maennchen
maennchen merged commit 0a3d2c4 into main Oct 3, 2026
28 checks passed
@maennchen
maennchen deleted the fix-provider-worker-ets-set branch October 3, 2026 11:35
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.

Provider worker's ETS table is a bag, so reads fall back to gen_server calls once a value has changed

1 participant