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

(PDB-4579) fix connection tests #3148

Merged
merged 1 commit into from Nov 21, 2019
Merged

(PDB-4579) fix connection tests #3148

merged 1 commit into from Nov 21, 2019

Conversation

robdaemon
Copy link
Contributor

PostgreSQL JDBC driver has a bug where the isValid() call on a
connection does not respect timeouts. This causes our connection pool to
not detect a dead connection, which will eventually exhaust our
connection pool entirely. See pgjdbc/pgjdbc#1557

This fix is specific to PuppetDB 5.2.x and should not be applied to
newer branches.

@robdaemon robdaemon requested a review from a team as a code owner November 7, 2019 18:00
@puppetcla
Copy link

CLA signed by all contributors.

Zak-Kent
Zak-Kent previously approved these changes Nov 7, 2019
Copy link
Contributor

@Zak-Kent Zak-Kent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

@Zak-Kent
Copy link
Contributor

Zak-Kent commented Nov 7, 2019

Just rekicked the tests travis took a while so not sure if the failures were real

@Zak-Kent Zak-Kent dismissed their stale review November 7, 2019 22:59

changing approval because looks like the tests are failing for real

PostgreSQL JDBC driver has a bug where the isValid() call on a
connection does not respect timeouts. This causes our connection pool to
not detect a dead connection, which will eventually exhaust our
connection pool entirely. See pgjdbc/pgjdbc#1557
@robdaemon
Copy link
Contributor Author

Okay switched this up - instead of using a connection test query, this is using the same JDBC driver as 6.3.x and beyond, but the version that supports JRE 7.

@rbrw rbrw merged commit 2a43a10 into puppetlabs:5.2.x Nov 21, 2019
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

4 participants