Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix premature connection closure #1525

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft

Conversation

Ariana-B
Copy link
Contributor

@Ariana-B Ariana-B commented Dec 20, 2023

Reason for this pull request

On servers that aggressively close idle connections (e.g. NCI), the connection is sometimes closed prematurely when combining db calls with file io or writing to logs.

Proposed changes

  • Connection.execution_options doesn't modify the connection in-place until sqlalchemy 2.0; make current implementation compatible with both 1.4 and 2.0

  • Don't set connection isolation level to autocommit when calling _connect, as it is already set on the engine level

  • Closes #xxxx

  • Tests added / passed

  • Fully documented, including docs/about/whats_new.rst for all changes


📚 Documentation preview 📚: https://datacube-core--1525.org.readthedocs.build/en/1525/

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.

None yet

1 participant