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

Disable cache sharing when cache is disabled in JDBC connectors #11068

Merged
merged 1 commit into from
Feb 21, 2022

Conversation

findepi
Copy link
Member

@findepi findepi commented Feb 16, 2022

This disables opportunistic sharing of results (and failures) between
threads when cache is disabled.

This fixes usages going through EvictableCacheBuilder. Other cache
usages are to be addressed later.

Relates to: #11067

@cla-bot cla-bot bot added the cla-signed label Feb 16, 2022
@findepi
Copy link
Member Author

findepi commented Feb 16, 2022

@findepi findepi marked this pull request as draft February 16, 2022 13:53
@findepi findepi marked this pull request as ready for review February 16, 2022 13:56
@findepi findepi force-pushed the findepi/cached-concurrent-failure branch 4 times, most recently from 78fab5a to 1f4ed5d Compare February 17, 2022 10:53
@findepi findepi force-pushed the findepi/cached-concurrent-failure branch 2 times, most recently from 3be52e4 to c8170e6 Compare February 18, 2022 13:10
@findepi findepi changed the title Disable cache sharing when cache is disabled Disable cache sharing when cache is disabled in JDBC connectors Feb 21, 2022
This disables opportunistic sharing of results (and failures) between
threads when global cache (in `CachingJdbcClient`) is disabled.

This fixes usages going through `EvictableCacheBuilder`. Other cache
usages are to be addressed later.
@findepi findepi force-pushed the findepi/cached-concurrent-failure branch from c8170e6 to ffbcd63 Compare February 21, 2022 08:18
@findepi findepi merged commit 276b8bb into trinodb:master Feb 21, 2022
@findepi findepi deleted the findepi/cached-concurrent-failure branch February 21, 2022 08:18
@findepi findepi mentioned this pull request Feb 21, 2022
@github-actions github-actions bot added this to the 372 milestone Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants