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

log errors in test_timeline_ancestor_errors #7911

Closed
jcsp opened this issue May 30, 2024 · 0 comments · Fixed by #7912
Closed

log errors in test_timeline_ancestor_errors #7911

jcsp opened this issue May 30, 2024 · 0 comments · Fixed by #7912
Labels
a/tech_debt Area: related to tech debt c/storage/pageserver Component: storage: pageserver

Comments

@jcsp
Copy link
Contributor

jcsp commented May 30, 2024

Example: https://neon-github-public-dev.s3.amazonaws.com/reports/pr-7890/9289540753/index.html#/testresult/50cc44a543293a6d

WARN initial_size_calculation{tenant_id=dc09a153967cedd38838720c24dad972 shard_id=0000 timeline_id=07679a169dd4cd56bf27b5808f0aba30}: initial size calculation failed: Bad state (not active)\n')
@jcsp jcsp added c/storage/pageserver Component: storage: pageserver a/tech_debt Area: related to tech debt labels May 30, 2024
jcsp added a commit that referenced this issue May 31, 2024
…7912)

## Problem

- Initial size calculations tend to fail with `Bad state (not active)`

Closes: #7911

## Summary of changes

- In `wait_lsn`, return WaitLsnError::Cancelled rather than BadState
when the state is Stopping
- Replace PageReconstructError's `Other` variant with a specific
`BadState` variant
- Avoid returning anyhow::Error from get_ready_ancestor_timeline -- this
was only used for the case where there was no ancestor. All callers of
this function had implicitly checked that the ancestor timeline exists
before calling it, so they can pass in the ancestor instead of handling
an error.
a-masterov pushed a commit that referenced this issue Jun 3, 2024
…7912)

## Problem

- Initial size calculations tend to fail with `Bad state (not active)`

Closes: #7911

## Summary of changes

- In `wait_lsn`, return WaitLsnError::Cancelled rather than BadState
when the state is Stopping
- Replace PageReconstructError's `Other` variant with a specific
`BadState` variant
- Avoid returning anyhow::Error from get_ready_ancestor_timeline -- this
was only used for the case where there was no ancestor. All callers of
this function had implicitly checked that the ancestor timeline exists
before calling it, so they can pass in the ancestor instead of handling
an error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a/tech_debt Area: related to tech debt c/storage/pageserver Component: storage: pageserver
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant