Skip to content

fix(adapter): isolate re-entrancy guard by fiber - #1055

Open
efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/fix-semian-adapter-context-guard
Open

efegokdemir wants to merge 1 commit into
Shopify:mainfrom
efegokdemir:efe/fix-semian-adapter-context-guard

Conversation

@efegokdemir

Copy link
Copy Markdown

The adapter kept its re-entrancy flag on the shared instance, so concurrent calls could skip resource acquisition and circuit checks. This tracks active adapters per fiber while preserving same-fiber re-entrancy, with regression coverage and updated thread-safety guidance.\n\nVerified: targeted adapter tests (6 tests, 17 assertions), RuboCop on changed files, and rake build. The full suite was not run; targeted tests used a minimal helper rather than the full Toxiproxy-backed setup. Closes #1045.

This branch has not been deployed

No deployments
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.

Semian::Adapter's re-entrancy guard silently disables the circuit when the adapter is mixed into a shared object

1 participant