neondatabase / neon

Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, code-like database branching, and scale to zero.
https://neon.tech
Apache License 2.0
15.15k stars 442 forks source link

NOAI #9084

Closed MMeent closed 1 month ago

MMeent commented 1 month ago

We can't FlushOneBuffer when we're in redo-only mode on PageServer, so make execution of that function conditional on us not running in pageserver walredo mode.

Problem

https://neondb.slack.com/archives/C033RQ5SPDH/p1726847895245409

Summary of changes

We make sure to not call into FlushOneBuffer when we're in WALRedoPostgres mode.

See

Checklist before requesting a review

Checklist before merging

hlinnaka commented 1 month ago

Can we add a test to the test suite, please?

MMeent commented 1 month ago

Can we add a test to the test suite, please?

I've updated the test that checks compatibility with unlogged tables, would that be sufficient?

github-actions[bot] commented 1 month ago

5029 tests run: 4865 passed, 0 failed, 164 skipped (full report)


Flaky tests (4) #### Postgres 17 - `test_pageserver_compaction_smoke`: [release-arm64](https://neon-github-public-dev.s3.amazonaws.com/reports/pr-9084/10997888708/index.html#suites/f08716c3eb261a35d11a79ed9535ded6/893f960ec3f05c8/retries) #### Postgres 16 - `test_subscriber_synchronous_commit`: [release-arm64](https://neon-github-public-dev.s3.amazonaws.com/reports/pr-9084/10997888708/index.html#suites/180444c850d4a41d41eb0a410dc16d84/b5cc5a204f10037e/retries) - `test_neon_cli_basics`: [release-arm64](https://neon-github-public-dev.s3.amazonaws.com/reports/pr-9084/10997888708/index.html#suites/48b4046d39093f7675bf477e070db277/81f16295fa5b4eed/retries) #### Postgres 14 - `test_lfc_resize`: [release-arm64](https://neon-github-public-dev.s3.amazonaws.com/reports/pr-9084/10997888708/index.html#suites/821f97908a487f1d7d3a2a4dd1571e99/792c6c02118f89d2/retries)

Code coverage* (full report)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
7eb96e224e685167ad85f58f858387d8cf253f63 at 2024-09-23T21:26:16.583Z :recycle:
MMeent commented 1 month ago

cc @hlinnaka

arpad-m commented 1 month ago

very strange @hlinnaka @bayandin link:

  HEAD is now at 4d5add9 compact_level0_phase1: remove final traces of value access mode config (#8935)
  M vendor/postgres-v14
  M vendor/postgres-v15
  M vendor/postgres-v16
  M vendor/postgres-v17
  vendor/postgres-v16
  fatal: unable to read tree (1d7081a3b076ddf5086e0b118d4329820e6a7427)
  fatal: Unable to checkout '1d7081a3b076ddf5086e0b118d4329820e6a7427' in submodule path 'vendor/postgres-v16'
  Error: __Line:133__Error: Could not checkout submodule hash referenced by main. It may not be pushed to remote or deeper than workflow shallow clone