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

Enable Redis connection pool if commons-pool2 is on the classpath #26326

Closed
wants to merge 7 commits into from

Conversation

weixsun
Copy link
Contributor

@weixsun weixsun commented Apr 30, 2021

Is #26202 concise version

@snicoll
I'm really sorry, I just want to make the commits look less, but it makes things more complicated.

There will be no changes before the merger or approval, please let things go back to normal, sorry again

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 30, 2021
@snicoll snicoll added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 30, 2021
@snicoll snicoll added this to the 2.6.x milestone Apr 30, 2021
Copy link
Member

@snicoll snicoll left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @weixsun. I started to review in the aim of preparing this PR for our next feature release but there's too much work so I'd like you to have another look if possible. I suspect that the tests should be revisited as well.

Let me know if you have time. Thanks!

final boolean isSentinelConfig = (getSentinelConfig() != null);
// Jedis Sentinel cannot operate without a pool.
if (isSentinelConfig) {
throw new RedisClientPoolingException(ClientType.JEDIS);
Copy link
Member

Choose a reason for hiding this comment

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

That looks like something new to me and unrelated to configure the pool automatically. I am happy to consider this case at a later stage but for now please revert.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I got it. Regarding this, I will report it in another issue or pr.

@snicoll snicoll added the status: waiting-for-feedback We need additional information before we can continue label Jun 1, 2021
@weixsun
Copy link
Contributor Author

weixsun commented Jun 1, 2021

@snicoll

there's too much work so I'd like you to have another look if possible

Let me know if you have time. Thanks!

First of all, thank you for your review. You have indeed left a lot of suggestions for modification. Maybe it’s time to reach our goal again in an elegant and simple way. The good news is that I have plenty of time now, and I will reorganize and make appropriate modify.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Jun 1, 2021
@snicoll snicoll added status: waiting-for-feedback We need additional information before we can continue and removed status: feedback-provided Feedback has been provided labels Jun 1, 2021
@snicoll
Copy link
Member

snicoll commented Jun 2, 2021

@weixsun those extra commits won't be reviewed as I've already reviewed the PR locally and polished things up. It is interesting though because I more or less did the same on my side.

snicoll pushed a commit to snicoll/spring-boot that referenced this pull request Jun 2, 2021
snicoll added a commit to snicoll/spring-boot that referenced this pull request Jun 2, 2021
@snicoll snicoll removed the status: waiting-for-feedback We need additional information before we can continue label Jun 2, 2021
@snicoll snicoll self-assigned this Jun 2, 2021
@weixsun
Copy link
Contributor Author

weixsun commented Jun 2, 2021

@snicoll I got it. Experienced you can always be trusted. I'm sorry that I brought you extra work because of my original excessive thinking and coding.😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants