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

neon walsender_hooks: take basebackup LSN directly. #9263

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

arssher
Copy link
Contributor

@arssher arssher commented Oct 3, 2024

NeonWALReader needs to know LSN before which WAL is not available locally, that is, basebackup LSN. Previously it was taken from WalpropShmemState, but that's racy, as walproposer sets its there only after successfull election. Get it directly with GetRedoStartLsn.

Should fix flakiness of
test_ondemand_wal_download_in_replication_slot_funcs etc.

ref #9201

@arssher arssher requested a review from knizhnik October 3, 2024 15:26
@arssher arssher requested review from a team as code owners October 3, 2024 15:26
@arssher arssher requested a review from yliang412 October 3, 2024 15:26
NeonWALReader needs to know LSN before which WAL is not available
locally, that is, basebackup LSN. Previously it was taken from
WalpropShmemState, but that's racy, as walproposer sets its there only
after successfull election. Get it directly with GetRedoStartLsn.

Should fix flakiness of
test_ondemand_wal_download_in_replication_slot_funcs etc.

ref #9201
@arssher arssher force-pushed the neonxlogreadroutines-basebackuplsn branch from f150e4a to 96208eb Compare October 3, 2024 15:27
Copy link

github-actions bot commented Oct 3, 2024

5058 tests run: 4872 passed, 0 failed, 186 skipped (full report)


Flaky tests (4)

Postgres 17

Postgres 15

Postgres 14

Code coverage* (full report)

  • functions: 31.4% (7490 of 23883 functions)
  • lines: 49.5% (60127 of 121349 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
96208eb at 2024-10-03T16:52:26.587Z :recycle:

@jcsp
Copy link
Collaborator

jcsp commented Oct 3, 2024

Thank you - please can you link the issue in the PR description

@arssher arssher merged commit db53f98 into main Oct 4, 2024
79 checks passed
@arssher arssher deleted the neonxlogreadroutines-basebackuplsn branch October 4, 2024 13:56
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.

4 participants