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

fix(page_service): page reconstruct error log does not include shard_id label #10680

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

problame
Copy link
Contributor

@problame problame commented Feb 5, 2025

Problem

Before this PR, the shard_id field was missing when page_service logs a reconstruct error.

This was caused by batching-related refactorings.

Example from staging:

2025-01-30T07:10:04.346022Z ERROR page_service_conn_main{peer_addr=...}:process_query{tenant_id=... timeline_id=...}:handle_pagerequests:request:handle_get_page_at_lsn_request_batched{req_lsn=FFFFFFFF/FFFFFFFF}: error reading relation or page version: Read error: whole vectored get request failed because one or more of the requested keys were missing: could not find data for key  ...

Changes

Delay creation of the handler-specific span until after shard routing

This also avoids the need for the record() call in the pagestream hot path.

Testing

Manual testing with a failpoint that is part of this PR's history but will be squashed away.

Refs

@problame problame requested a review from a team as a code owner February 5, 2025 19:34
@problame problame requested review from VladLazar and arpad-m and removed request for VladLazar February 5, 2025 19:34
Copy link

github-actions bot commented Feb 5, 2025

7425 tests run: 7072 passed, 0 failed, 353 skipped (full report)


Code coverage* (full report)

  • functions: 33.2% (8576 of 25805 functions)
  • lines: 49.1% (72148 of 147055 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
9fd667e at 2025-02-05T20:40:33.627Z :recycle:

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.

page_service page reconstruct error log does not include shard_id label
2 participants