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

Increment ReleaseIdle Counter when testAllIdle releases them #241

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

chaitan64arun
Copy link
Contributor

@chaitan64arun chaitan64arun commented Feb 14, 2020

In Tomcat JDBC module, I reckon PoolCleaner cleans the idle connections in two ways

  • checkIdle
  • testAllIdle

releasedIdleCount is incremented when released from checkIdle but not from testAllIdle. Is it part of the design? If so, why is it not counted?

IMO, the counter should be incremented in testAllIdle too. This PR includes this change.

@aooohan
Copy link
Member

aooohan commented Aug 4, 2023

Ok, you are right. It does seem to have been overlooked.

@aooohan aooohan merged commit f1e571a into apache:main Aug 4, 2023
aooohan added a commit that referenced this pull request Aug 4, 2023
Fix the releaseIdleCounter does not increment when testAllIdle releases them. Pull request #241 provided by Arun Chaitanya Miriappalli
aooohan added a commit that referenced this pull request Aug 4, 2023
Fix the releaseIdleCounter does not increment when testAllIdle releases them. Pull request #241 provided by Arun Chaitanya Miriappalli
aooohan added a commit that referenced this pull request Aug 4, 2023
Fix the releaseIdleCounter does not increment when testAllIdle releases them. Pull request #241 provided by Arun Chaitanya Miriappalli
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.

2 participants