We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Inside removeProxy(Long key) method connection is acquired by datasource.getConnection() but never closed
removeProxy(Long key)
datasource.getConnection()
The fix may look like this
public void removeProxy(Long key) { try (Connection connection = dataSource.getConnection(); PreparedStatement removeStatement = connection.prepareStatement(removeSqlQuery)) { removeStatement.setLong(1, key); removeStatement.executeUpdate(); } catch (SQLException e) { throw new BucketExceptions.BucketExecutionException(e); } }
The text was updated successfully, but these errors were encountered:
@rnby-mike
Thank you, fix will be released soon.
Sorry, something went wrong.
#246: fix JDBC connection leaks inside removeProxy methods
30db218
Released with version 7.4.0
No branches or pull requests
Inside
removeProxy(Long key)
method connection is acquired bydatasource.getConnection()
but never closedThe fix may look like this
The text was updated successfully, but these errors were encountered: