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

feat(Pool): autovacuum fix + refactor #3479

Merged
merged 3 commits into from Sep 28, 2023

Conversation

wolf4ood
Copy link
Contributor

@wolf4ood wolf4ood commented Sep 27, 2023

What this PR changes/adds

In this PR:

  • Disabled by default test connection on return.
  • Added rollback if necessary on connection test
  • New Configuration env variables friendly
  • Replaced the disabled test CommonsConnectionPoolServiceExtensionTest with a functioning one

Why it does that

cleanup and bug fix for autovacuum

Linked Issue(s)

Closes #3475

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@wolf4ood wolf4ood self-assigned this Sep 27, 2023
@wolf4ood wolf4ood added bug Something isn't working refactoring Cleaning up code and dependencies labels Sep 27, 2023
@codecov-commenter
Copy link

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (7dc9dde) 71.72% compared to head (e08f6c0) 72.07%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3479      +/-   ##
==========================================
+ Coverage   71.72%   72.07%   +0.34%     
==========================================
  Files         841      842       +1     
  Lines       17009    17020      +11     
  Branches      953      953              
==========================================
+ Hits        12200    12267      +67     
+ Misses       4406     4349      -57     
- Partials      403      404       +1     
Files Coverage Δ
.../sql/pool/commons/CommonsConnectionPoolConfig.java 100.00% <100.00%> (ø)
.../pool/commons/CommonsConnectionPoolConfigKeys.java 100.00% <100.00%> (ø)
...commons/CommonsConnectionPoolServiceExtension.java 90.90% <100.00%> (+90.90%) ⬆️
...se/edc/sql/pool/commons/CommonsConnectionPool.java 80.00% <73.91%> (+2.00%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wolf4ood wolf4ood marked this pull request as ready for review September 27, 2023 15:01
@wolf4ood wolf4ood merged commit 101203a into eclipse-edc:main Sep 28, 2023
18 checks passed
@wolf4ood wolf4ood deleted the fix/3475_autovacuum branch September 28, 2023 08:31
ndkrimbacher pushed a commit to nexyo-io/DataSpaceConnector that referenced this pull request Oct 4, 2023
* feat(Pool): disable test connection on return, adds rollback if it's not autocommit, config refactor

* docs: adds new pool configuration values in README.md

* feat: removes types with var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working refactoring Cleaning up code and dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PgStores] Autovacuum prevented by idle in transaction
4 participants