-
Notifications
You must be signed in to change notification settings - Fork 103
feat: Add support for multiplexed sessions - #1383
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to force disable multiplexed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need it at all? Is this environment variable is being completely removed from the scope of the project?
...E_MULTIPLEXED_SESSIONS` and add unit tests. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...` exception from `DatabaseSessionManager` and add unit tests. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...essions, add unit tests. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
Signed-off-by: Taylor Curran <taylor.curran@improving.com>
Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...shotBase` and update attributes and tests. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...edundant as transaction ID is set via `_restart_on_unavailable`) Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...to `Client` so that multiplexed are disabled for _all_ databases. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...Database.run_in_transaction` to not use it. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
... cleanup. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...ession manager. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...s from class attributes to instance attributes. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...d `database.session()` Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...s, add TODOs, and make `Session._transaction` default to None. Plus add some `Optional` typing hints. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...hot` to `_SnapshotBase` and update unit tests. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...nsaction`, move to base class, update tests. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...ransactions. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
... checks, add `raises` documentation. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
..., some minor cleanup. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...mit token returned. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...edentials. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...for testing. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...nsert_then_rollback`. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...e class, simplify `_SnapshotBase` tests, remove redundant tests. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...d_insert_then_rollback` and add `build_request_id` helper method, fix `test_snapshot` and `test_transaction` failures. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...d by maintenance thread. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...r `_SnapshotBase`. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
... constants for next step. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...ew multiplexed behaviour. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
Signed-off-by: Taylor Curran <taylor.curran@improving.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added helper method to reduce duplication in tests.
Signed-off-by: Taylor Curran <taylor.curran@improving.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Read/write transaction are supported here, but are disabled in DatabaseSessionManager. Will be turning that on in the next PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Helpers methods. Added to help simply unit tests.
Signed-off-by: Taylor Curran <taylor.curran@improving.com>
...multiplexed sessions due to runtime failures. Signed-off-by: Taylor Curran <taylor.curran@improving.com>
Signed-off-by: Taylor Curran <taylor.curran@improving.com>
Signed-off-by: Taylor Curran <taylor.curran@improving.com>
Uh oh!
There was an error while loading. Please reload this page.
feat: Add support for multiplexed sessions: