-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In the existing code execute queries were just a pass-through. That means that if an unprepared error occurred it was just passed back to the driver. The problem is that an attempt to prepare that query again would be forwarded to a connection that was not the one that originally serviced the execute. This could cause a scenario where execute requests would never resolve from the unprepared state. The proxy fixes this by keeping its own cache and properly handling unprepared errors. This cache was push down into the `proxycore` because eventually we should add pre-preparing queries on add/up node events. This should be address in a follow up issue: #32
- Loading branch information
Showing
15 changed files
with
610 additions
and
88 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
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
Oops, something went wrong.