Skip to content

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

Merged
findepi merged 1 commit intotrinodb:masterfrom
findepi:findepi/cached-concurrent-failure
Feb 21, 2022
Merged

Disable cache sharing when cache is disabled in JDBC connectors#11068
findepi merged 1 commit intotrinodb:masterfrom
findepi:findepi/cached-concurrent-failure

Conversation

@findepi
Copy link
Copy Markdown
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
Copy Markdown
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