You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Separate Session related functionality from Connection class (#571)
* decouple session class from existing Connection
ensure maintenance of current APIs of Connection while delegating
responsibility
Signed-off-by: varun-edachali-dbx <[email protected]>
* add open property to Connection to ensure maintenance of existing API
Signed-off-by: varun-edachali-dbx <[email protected]>
* update unit tests to address ThriftBackend through session instead of through Connection
Signed-off-by: varun-edachali-dbx <[email protected]>
* chore: move session specific tests from test_client to test_session
Signed-off-by: varun-edachali-dbx <[email protected]>
* formatting (black)
as in CONTRIBUTING.md
Signed-off-by: varun-edachali-dbx <[email protected]>
* use connection open property instead of long chain through session
Signed-off-by: varun-edachali-dbx <[email protected]>
* trigger integration workflow
Signed-off-by: varun-edachali-dbx <[email protected]>
* fix: ensure open attribute of Connection never fails
in case the openSession takes long, the initialisation of the session
will not complete immediately. This could make the session attribute
inaccessible. If the Connection is deleted in this time, the open()
check will throw because the session attribute does not exist. Thus, we
default to the Connection being closed in this case. This was not an
issue before because open was a direct attribute of the Connection
class. Caught in the integration tests.
Signed-off-by: varun-edachali-dbx <[email protected]>
* fix: de-complicate earlier connection open logic
earlier, one of the integration tests was failing because 'session was
not an attribute of Connection'. This is likely tied to a local
configuration issue related to unittest that was causing an error in the
test suite itself. The tests are now passing without checking for the
session attribute.
c676f9b
Signed-off-by: varun-edachali-dbx <[email protected]>
* Revert "fix: de-complicate earlier connection open logic"
This reverts commit d6b1b19.
Signed-off-by: varun-edachali-dbx <[email protected]>
* [empty commit] attempt to trigger ci e2e workflow
Signed-off-by: varun-edachali-dbx <[email protected]>
* Update CODEOWNERS (#562)
new codeowners
Signed-off-by: varun-edachali-dbx <[email protected]>
* Enhance Cursor close handling and context manager exception management to prevent server side resource leaks (#554)
* Enhance Cursor close handling and context manager exception management
* tests
* fmt
* Fix Cursor.close() to properly handle CursorAlreadyClosedError
* Remove specific test message from Cursor.close() error handling
* Improve error handling in connection and cursor context managers to ensure proper closure during exceptions, including KeyboardInterrupt. Add tests for nested cursor management and verify operation closure on server-side errors.
* add
* add
Signed-off-by: varun-edachali-dbx <[email protected]>
* PECOBLR-86 improve logging on python driver (#556)
* PECOBLR-86 Improve logging for debug level
Signed-off-by: Sai Shree Pradhan <[email protected]>
* PECOBLR-86 Improve logging for debug level
Signed-off-by: Sai Shree Pradhan <[email protected]>
* fixed format
Signed-off-by: Sai Shree Pradhan <[email protected]>
* used lazy logging
Signed-off-by: Sai Shree Pradhan <[email protected]>
* changed debug to error logs
Signed-off-by: Sai Shree Pradhan <[email protected]>
* used lazy logging
Signed-off-by: Sai Shree Pradhan <[email protected]>
---------
Signed-off-by: Sai Shree Pradhan <[email protected]>
Signed-off-by: varun-edachali-dbx <[email protected]>
* Revert "Merge remote-tracking branch 'upstream/sea-migration' into decouple-session"
This reverts commit dbb2ec5, reversing
changes made to 7192f11.
Signed-off-by: varun-edachali-dbx <[email protected]>
* Reapply "Merge remote-tracking branch 'upstream/sea-migration' into decouple-session"
This reverts commit bdb8381.
Signed-off-by: varun-edachali-dbx <[email protected]>
* fix: separate session opening logic from instantiation
ensures correctness of self.session.open call in Connection
Signed-off-by: varun-edachali-dbx <[email protected]>
* fix: use is_open attribute to denote session availability
Signed-off-by: varun-edachali-dbx <[email protected]>
* fix: access thrift backend through session
Signed-off-by: varun-edachali-dbx <[email protected]>
* chore: use get_handle() instead of private session attribute in client
Signed-off-by: varun-edachali-dbx <[email protected]>
* formatting (black)
Signed-off-by: varun-edachali-dbx <[email protected]>
* fix: remove accidentally removed assertions
Signed-off-by: varun-edachali-dbx <[email protected]>
---------
Signed-off-by: varun-edachali-dbx <[email protected]>
Signed-off-by: Sai Shree Pradhan <[email protected]>
Co-authored-by: Jothi Prakash <[email protected]>
Co-authored-by: Madhav Sainanee <[email protected]>
Co-authored-by: Sai Shree Pradhan <[email protected]>
0 commit comments