-
Notifications
You must be signed in to change notification settings - Fork 448
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(pageserver): add the walreceiver state to tenant timeline GET api endpoint #5196
fix(pageserver): add the walreceiver state to tenant timeline GET api endpoint #5196
Conversation
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.
Otherwise this is looking good but I see I have failed to update the issue description and only requested this in my follow-up comment much later.
Could you move it to be part of pageserver::http::routes::timeline_detail_handler
or GET /v1/tenant/:tenant/timeline/:timeline
instead of a new endpoint? In pratice with prod, timeline detail is what we most often get, that way it would be easily accessible for all "existing users".
@koivunej |
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.
Yeah apologies on the openapi changes, which were good but as we'll need this for debugging, I don't think it is important to note this here.
Let's make the new methods pub(crate) and I'll fire up a workflow run for this. I can most likely merge those commits, let's try.
Thanks for working on this as well! I added those Hmm.. |
Yes, for me, the CI run is a bit inconvenient. |
It's a bit inconvenient for everyone, but especially for external contributors :) Python tests take quite some time and requrie a beefy cpu, preferably an isolated box. I usually run them with |
Add a
walreceiver_state
field toTimelineInfo
(response ofGET /v1/tenant/:tenant_id/timeline/:timeline_id
) and while doing that, refactor out a commonTimeline::walreceiver_state(..)
. No OpenAPI changes, because this is an internal debugging addition.Fixes #3115.