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

Rethink closing strategy of the ThreadLocalPool optimised pgpool #10228

Merged
merged 3 commits into from
Jun 25, 2020

Conversation

Sanne
Copy link
Member

@Sanne Sanne commented Jun 24, 2020

Have been tinkering with the new pool a bit.

The main improvement is that the thredlocals and their matching List of opened pools is being treated as a single element of state, so stored together and closed as one. Before you could have some odd situations with the list being attempted to be modified during a close, or viceversa.

Should still be very efficient, however I didn't test that.

@Sanne Sanne requested a review from FroMage June 24, 2020 16:01
@Sanne Sanne added the area/hibernate-reactive Hibernate Reactive label Jun 24, 2020
@Sanne Sanne added this to the 1.6.0 - master milestone Jun 24, 2020
@FroMage
Copy link
Member

FroMage commented Jun 24, 2020

Sorry I can't review this besides rubber-stamping it. This concurrency stuff is not something I'm familiar with.

@FroMage
Copy link
Member

FroMage commented Jun 24, 2020

I mean, I can definitely rubber-stamp this if that's what you're after, but I suspect you want someone to actually understand what you changed, right? If yes, I'm not qualified.

@Sanne Sanne force-pushed the pgpoolconcurrency branch from 8ee9a61 to 6d19026 Compare June 24, 2020 16:26
@Sanne
Copy link
Member Author

Sanne commented Jun 24, 2020

Ok I'll take the rubber-stamp then :) If there's issues, I'll fix them

Re-pushed as there was a formatting issue.

@Sanne
Copy link
Member Author

Sanne commented Jun 24, 2020

Since @geoand had to revert the original patch in #10240 , I've re-included it here but deleting the problematic test: it's late now and I can't check what's wrong with the test, but the failure isn't related with the pool optimisation.

@geoand
Copy link
Contributor

geoand commented Jun 25, 2020

CI is passing

@Sanne
Copy link
Member Author

Sanne commented Jun 25, 2020

great. Could you merge it @geoand ? I think Stephane mentioned going on PTO and we need the feature - this code is all disabled by default so should be low risk.

Copy link
Contributor

@geoand geoand left a comment

Choose a reason for hiding this comment

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

I trust you :)

@geoand geoand merged commit 7c01526 into quarkusio:master Jun 25, 2020
@Sanne Sanne deleted the pgpoolconcurrency branch June 25, 2020 07:16
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.

3 participants