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

Do not evict tombstones #31311

Merged
merged 1 commit into from
Apr 21, 2023
Merged

Conversation

pgarg66
Copy link
Contributor

@pgarg66 pgarg66 commented Apr 21, 2023

Problem

Evicting tombstones can cause incorrect view of the cache. If the tombstone and updated program entry both get evicted, the cache can potentially return old program to the caller.

Summary of Changes

Do not evict tombstones. Also updated the tests.

Fixes #

@pgarg66 pgarg66 requested a review from Lichtso April 21, 2023 19:38
@codecov
Copy link

codecov bot commented Apr 21, 2023

Codecov Report

Merging #31311 (7ac166a) into master (74e02ad) will increase coverage by 0.0%.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##           master   #31311   +/-   ##
=======================================
  Coverage    81.5%    81.5%           
=======================================
  Files         733      733           
  Lines      207054   207055    +1     
=======================================
+ Hits       168894   168904   +10     
+ Misses      38160    38151    -9     

@pgarg66 pgarg66 merged commit a35e31f into solana-labs:master Apr 21, 2023
@pgarg66 pgarg66 deleted the tombstone-eviction branch April 21, 2023 23:36
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.

2 participants