Possible correctness issue in neon_read_at_lsnv() that could cause incorrect pages on Hot Standby replicas #10620
Labels
c/compute
Component: compute, excluding postgres itself
external
A PR or Issue is created by an external user
m/good_first_issue
Moment: when doing your first Neon contributions
t/bug
Issue Type: Bug
triaged
bugs that were already triaged
In the function neon_read_at_lsnv(), there is the following code:
I think the last line here is incorrect, and should be
Note that 0 is replaced with i.
The current code, as is, might return pages from the page server that have LSNs that are higher or equal to the current WAL replay LSN. In case of a multi-page WAL record, this might cause problems if the WAL record is partly replayed, and some pages were missing in the buffer pool and skipped by redo.
The text was updated successfully, but these errors were encountered: