-
Notifications
You must be signed in to change notification settings - Fork 486
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
Report attach failures in pageserver API #4344
Comments
Cross-posting @koivunej 's comment on this from PR review #4321 (would be good to base this work on top of that PR)
|
Note this is already causing rare flakyness on #4321 so I am thinking we cannot yet release this: #4321 (comment). |
I'll pick this up once #4321 is merged |
## Problem Attach failures are not reported in public part of the api (in `attachment_status` field of TenantInfo). ## Summary of changes Expose TenantState::Broken as TenantAttachmentStatus::Failed In the way its written Failed status will be reported even if no attachment happened. (I e if tenant become broken on startup). This is in line with other members. I e Active will be resolved to Attached even if no actual attach took place. This can be tweaked if needed. At the current stage it would be overengineering without clear motivation resolves #4344
## Problem Attach failures are not reported in public part of the api (in `attachment_status` field of TenantInfo). ## Summary of changes Expose TenantState::Broken as TenantAttachmentStatus::Failed In the way its written Failed status will be reported even if no attachment happened. (I e if tenant become broken on startup). This is in line with other members. I e Active will be resolved to Attached even if no actual attach took place. This can be tweaked if needed. At the current stage it would be overengineering without clear motivation resolves #4344
Based on conversation here: https://neondb.slack.com/archives/C033A2WE6BZ/p1684854161739799
TLDR: we need to return Failed status instead of
Attached
if tenant is in broken stateThe text was updated successfully, but these errors were encountered: