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

Redis cache connection pool #273

Merged
merged 21 commits into from
Mar 14, 2022
Merged

Redis cache connection pool #273

merged 21 commits into from
Mar 14, 2022

Conversation

timyates
Copy link
Contributor

Update of #217 merging in the current master

Also removed unused imports from the test spec

@graemerocher as far as I can see, your review has been addressed. And all tests pass.

Is this good to go?

@sdelamo I've assigned this to the next minor release, but now I'm thinking it should be a major for the changes to RedisCache.java

@timyates timyates added this to the 5.3.0 milestone Mar 14, 2022
@timyates timyates self-assigned this Mar 14, 2022
@timyates
Copy link
Contributor Author

Looking into the sonar issues

@timyates
Copy link
Contributor Author

The duplication smell is going to be a significant change afaics 🤔

Not sure how far we go with this to appease Sonar...

I'll try and get the coverage up a bit

@timyates
Copy link
Contributor Author

There may be a bug in putIfAbsent... Checking...

@timyates timyates marked this pull request as draft March 14, 2022 13:18
@sonarcloud
Copy link

sonarcloud bot commented Mar 14, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

74.8% 74.8% Coverage
3.5% 3.5% Duplication

@timyates
Copy link
Contributor Author

@graemerocher I am struggling to find non-contrived solutions for the Sonar Gate.

I have added more sensible coverage and found (I believe) a bug in the async invalidateAll

Removing the duplication would (imo) complicate the implementation
And a lot of the missing coverage seems to be deep down exception handling

Unless you can see a route to deduplication, or any coverage we need to have?

@timyates timyates marked this pull request as ready for review March 14, 2022 15:54
@graemerocher
Copy link
Contributor

Ok we can probably just merge as is

@graemerocher graemerocher merged commit 5d281ae into master Mar 14, 2022
@graemerocher graemerocher deleted the pr-217 branch March 14, 2022 16:00
Copy link
Contributor

@sdelamo sdelamo left a comment

Choose a reason for hiding this comment

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

@timyates can you address these comments in a separate PR?

* @param key The key
* @return bytes of the object
*/
protected byte[] serializeKey(Object key) {
Copy link
Contributor

Choose a reason for hiding this comment

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

deleting this method is a breaking change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the japicmp task had it down as a "source compatible" warning (not an error)

I added them back in anyway, and found the Sonar incantation to stop it complaining

timyates added a commit that referenced this pull request Mar 15, 2022
sdelamo pushed a commit that referenced this pull request Mar 15, 2022
* Address feedback for connection pool

This addresses the feedback from @sdelamo in #273

Two items remain:

1. [don't use Optional as method parameter](https://github.com/micronaut-projects/micronaut-redis/pull/273\#discussion_r826692810)

2. [deleting this method is a breaking change](https://github.com/micronaut-projects/micronaut-redis/pull/273\#discussion_r826696245)

* Binary compatability in RedisCache
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.

3 participants