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 assign max(lsn) to maxLastWrittenLsn in SetLastWrittenLSNForblokv #10474

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

knizhnik
Copy link
Contributor

@knizhnik knizhnik commented Jan 22, 2025

Problem

See #10281

SetLastWrittenLSNForBlockv is assigning max(lsn) to maxLastWrittenLsn while its should contain only max LSN not present in LwLSN cache. It case unnecessary waits in PS.

Summary of changes

Restore status-quo for pg17.

Related Postgres PR: neondatabase/postgres#563

@knizhnik knizhnik requested a review from a team as a code owner January 22, 2025 07:50
@knizhnik knizhnik requested review from MMeent and lubennikovaav and removed request for MMeent January 22, 2025 07:50
Copy link

github-actions bot commented Jan 22, 2025

7429 tests run: 7043 passed, 0 failed, 386 skipped (full report)


Flaky tests (5)

Postgres 17

Postgres 16

Postgres 15

Postgres 14

Code coverage* (full report)

  • functions: 33.5% (8500 of 25347 functions)
  • lines: 49.3% (71494 of 144985 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
c55f571 at 2025-01-24T12:54:43.714Z :recycle:

Copy link
Contributor

@MMeent MMeent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a rebase after the PG pr gets merged, but apart from that LGTM

@knizhnik knizhnik added this pull request to the merge queue Jan 24, 2025
Merged via the queue into main with commit 9f1408f Jan 24, 2025
89 checks passed
@knizhnik knizhnik deleted the fix_set_lwlsnv branch January 24, 2025 14:58
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