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

pageserver: eliminate CalculateSyntheticSizeError::LsnNotFound (test_metric_collection flake) #8065

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

jcsp
Copy link
Collaborator

@jcsp jcsp commented Jun 14, 2024

Problem

ERROR synthetic_size_worker: failed to calculate synthetic size for tenant ae449af30216ac56d2c1173f894b1122: Could not find size at 0/218CA70 in timeline d8da32b5e3e0bf18cfdb560f9de29638\n')

e.g. https://neon-github-public-dev.s3.amazonaws.com/reports/main/9518948590/index.html#/testresult/30a6d1e2471d2775

This test had allow lists but was disrupted by #8051. In that PR, I had kept an error path in fill_logical_sizes that covered the case where we couldn't find sizes for some of the segments, but that path could only be hit in the case that some Timeline was shut down concurrently with a synthetic size calculation, so it makes sense to just leave the segment's size None in this case: the subsequent size calculations do not assume it is Some.

Summary of changes

  • Remove CalculateSyntheticSizeError::LsnNotFound and just proceed in the case where we used to return it
  • Remove defunct allow list entries in test_metric_collection

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.
  • Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
  • If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

  • Do not forget to reformat commit message to not include the above checklist

Copy link

3216 tests run: 3074 passed, 0 failed, 142 skipped (full report)


Flaky tests (2)

Postgres 15

  • test_pageserver_restarts_under_worload: release

Postgres 14

  • test_statvfs_pressure_usage: debug

Code coverage* (full report)

  • functions: 31.5% (6633 of 21064 functions)
  • lines: 48.6% (51628 of 106300 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
c7f685a at 2024-06-14T19:32:21.435Z :recycle:

@jcsp jcsp marked this pull request as ready for review June 16, 2024 12:55
@jcsp jcsp requested a review from a team as a code owner June 16, 2024 12:55
@jcsp jcsp requested review from petuhovskiy and arpad-m June 16, 2024 12:55
@jcsp jcsp merged commit ed9ffb9 into main Jun 18, 2024
65 checks passed
@jcsp jcsp deleted the jcsp/metric-collection-flakes branch June 18, 2024 12:44
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.

2 participants