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

Fix zenith_test_evict mode and clear_buffer_cache() function (v16) #419

Merged
merged 1 commit into from
May 22, 2024

Conversation

hlinnaka
Copy link
Contributor

Using InvalidateBuffer is wrong, because if the page is concurrently dirtied, it will throw away the dirty page without calling smgwrite(). In Neon, that means that the last-written LSN update for the page is missed.

In v16, use the new InvalidateVictimBuffer() function that does what we need. In v15 and v14, backport the InvalidateVictimBuffer() function.

Fixes issue neondatabase/neon#7802

Using InvalidateBuffer is wrong, because if the page is concurrently
dirtied, it will throw away the dirty page without calling
smgwrite(). In Neon, that means that the last-written LSN update for
the page is missed.

In v16, use the new InvalidateVictimBuffer() function that does what
we need. In v15 and v14, backport the InvalidateVictimBuffer()
function.

Fixes issue neondatabase/neon#7802
@hlinnaka hlinnaka changed the title Fix zenith_test_evict mode and clear_buffer_cache() function Fix zenith_test_evict mode and clear_buffer_cache() function (v16) May 21, 2024
@hlinnaka hlinnaka requested a review from knizhnik May 21, 2024 16:36
@hlinnaka hlinnaka merged commit 3c2b9d5 into REL_16_STABLE_neon May 22, 2024
@hlinnaka hlinnaka deleted the fix-zenith_test_evict-v16 branch May 22, 2024 11:24
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.

None yet

2 participants