8000 Problem: Incorrect flush LSN from source being used to find durable LSN by arajkumar · Pull Request #615 · dimitri/pgcopydb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Problem: Incorrect flush LSN from source being used to find durable LSN #615

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

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

arajkumar
Copy link
Contributor

Solution: Use flush LSN from target to find the durable LSN.

To find a durable LSN with async commit, we maintain a list of LSN mapping between source(sourceLSN) and target(insertLSN). New mapping will be inserted into the list on COMMIT or KEEPALIVE message.

While reporting the replay_lsn to sentinel we have to get the flush lsn from target and compare it against the insertLSN from the list to find the sourceLSN.

This has been discussed in #608 (comment)

Solution: Use flush LSN from target to find the durable LSN.

To find a durable LSN with async commit, we maintain a list of LSN mapping
between source(sourceLSN) and target(insertLSN). New mapping will be
inserted into the list on COMMIT or KEEPALIVE message.

While reporting the replay_lsn to sentinel we have to get the flush lsn from
target and compare it against the insertLSN from the list to find the sourceLSN.
8000
@dimitri dimitri merged commit 32827b8 into dimitri:main Jan 5, 2024
@dimitri dimitri added the bug Something isn't working label Jan 5, 2024
@dimitri dimitri added this to the v0.15 milestone Jan 5, 2024
@dimitri
Copy link
Owner
dimitri commented Jan 5, 2024

Thanks @arajkumar ! That looks almost like a typo that I did, all with the function comments saying the right thing and the code using the wrong connection string then... nice catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0