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

Load value once after expiration in EvictableCache #14644

Merged
merged 1 commit into from
Oct 15, 2022

Conversation

findepi
Copy link
Member

@findepi findepi commented Oct 14, 2022

Before the change, when value was time-expired, the new token inserted for the cache loading was immediately discarded due to expiration event.

Fixes #14545
Alternative to #14476

@cla-bot cla-bot bot added the cla-signed label Oct 14, 2022
Before the change, when value was time-expired, the new token inserted
for the cache loading was immediately discarded due to expiration event.

Co-authored-by: Anton Tanasenko <atg.sleepless@gmail.com>
@findepi findepi force-pushed the findepi/evictable-load-once branch from e3dfb67 to 834d934 Compare October 14, 2022 14:12
@findepi findepi marked this pull request as draft October 14, 2022 14:13
@findepi findepi marked this pull request as ready for review October 14, 2022 14:27
Copy link
Member

@losipiuk losipiuk left a comment

Choose a reason for hiding this comment

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

Does seem super crucial but looks correct :)

@findepi
Copy link
Member Author

findepi commented Oct 14, 2022

Does seem super crucial but looks correct :)

Does or does not?

@losipiuk
Copy link
Member

Does seem super crucial but looks correct :)

Does or does not?

Does not. But I change mind after offline conversation. It actually does.

@findepi findepi self-assigned this Oct 15, 2022
@findepi findepi merged commit 17faae3 into trinodb:master Oct 15, 2022
@findepi findepi deleted the findepi/evictable-load-once branch October 15, 2022 21:28
@github-actions github-actions bot added this to the 401 milestone Oct 15, 2022
@findepi
Copy link
Member Author

findepi commented Oct 15, 2022

EvictableCache touches so many areas that i don't know what to write in the release notes ...

@findepi findepi added the no-release-notes This pull request does not require release notes entry label Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed no-release-notes This pull request does not require release notes entry
Development

Successfully merging this pull request may close these issues.

EvictableCache loads value twice after time-based expiration
2 participants