-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(hc): Support split db monolith mode via smarter delegators (#53365)
Monolith mode delegators now *also* pick their implementation by attempting to examine any open transactions and selecting for an implementation that would align with the currently open tranaction. This fixes the subtle issue for hybrid cloud services like the log_service, as well as some helper methods on the organization_service, that do not invoke RPC, but rather, *pick different models* locally based on the silo mode. For Monolith mode, this means picking one model that works on one db, even if being invoked inside the transaction of the other db, threatening the transactional atomicity that is desired. (`schedule_signal`, for instance, hopes to leave an outbox behind in the same transaction as invocation). The Sentry Options backend *may* also need this, but unclear. Going to analyze split db tests after this lands and follow up.
- Loading branch information
Showing
3 changed files
with
130 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters