-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pageserver): allow read path debug in getpagelsn API (#10748)
## Problem The usual workflow for me to debug read path errors in staging is: download the tenant to my laptop, import, and then run some read tests. With this patch, we can do this directly over staging pageservers. ## Summary of changes * Add a new `touchpagelsn` API that does a page read but does not return page info back. * Allow read from latest record LSN from get/touchpagelsn * Add read_debug config in the context. * The read path will read the context config to decide whether to enable read path tracing or not. Signed-off-by: Alex Chi Z <[email protected]>
- Loading branch information
Showing
3 changed files
with
52 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
538ea03
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7697 tests run: 7314 passed, 0 failed, 383 skipped (full report)
Flaky tests (4)
Postgres 17
test_pageserver_gc_compaction_idempotent[after_restart]
: release-arm64-without-lfctest_migration_to_cold_secondary
: release-x86-64-with-lfc, release-arm64-without-lfcPostgres 14
test_timeline_archive[4]
: release-x86-64-with-lfcCode coverage* (full report)
functions
:32.9% (8624 of 26191 functions)
lines
:48.9% (72734 of 148843 lines)
* collected from Rust tests only
538ea03 at 2025-02-18T22:03:49.796Z :recycle: