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

Fixes #4141: apoc.load.jdbcUpdate inside apoc.periodic.iterate leaves idle connections from 5.19 and forward #4196

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

vga91
Copy link
Collaborator

@vga91 vga91 commented Sep 26, 2024

Fixes #4141

The problem should be related to this change, using the DatabaseConnectionSources the issue error is (flakily) caused,
while with Connection it works correctly.

Strangely using the Postgres' issue version, the error is not replicable via TestContainer,
while can be replicated with the default present version: 9.6.12.
Maybe because the user version has some special configuration, or the test container is slightly different from the non-test version.

In any case, even with that version, the problem occurs infrequently, about 1 time every 10/15, most of the time you get a “FATAL: sorry, too many clients already” instead of an "idle" connection,
which is not the case with the reported changes.

We could also solve the problem by downgrading the schemacrawler version,
but it is not recommended, since it has vulnerabilities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant