-
Notifications
You must be signed in to change notification settings - Fork 496
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: only showing LSN for static computes in neon endpoint list
#10931
Conversation
…compute was started with
If this PR added a GUC in the Postgres fork or
If you're an external contributor, a Neon employee will assist in |
7671090
to
42db511
Compare
…m:neondatabase/neon into thesuhas/incorrect_lsn_neon_endpoint_list
That doesn't make sense at all. We can know what LSN a read-only compute started with, why hide it? |
From my understanding, the LSN currently being shown is the |
Not in TLI, no, but the logs of the compute will contain the LSN of the basebackup (which is as good as the last_record_lsn) But why change this? I don't get the need to hide this info?
I'd say that's expected; data will change while you're still receiving it. We can't instantly teleport data into the terminal, but I think this is the next best thing. |
I think it stemmed from the fact that what the LSN table means differs based on the type of compute, as discussed here. |
I agree that displaying pageserver's If we can easily display the last replay LSN (i.e. If that's non-trivial, then I agree it's better to hide the LSN field than display a misleading value like we do today. |
Then we need to use Postgres client to do that. I don't think it's trivial. And given the neon_local tool is supposed to replicate the real cplane, and cplane doesn't have/use this functionality, I'd rather just hide the field. |
And we can also have inactive primary/hotstandbys in the list, which we cannot connect with psql... |
7755 tests run: 7375 passed, 0 failed, 380 skipped (full report)Flaky tests (4)Postgres 17
Postgres 15
Code coverage* (full report)
* collected from Rust tests only The comment gets automatically updated with the latest test results
5e90b06 at 2025-02-25T19:33:05.457Z :recycle: |
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.
LGTM, unless there are strong objections, but looks like Chi and Heikki +1'ed as well
Showing it for primary and replica is more confusing than useful. And making to to follow the actual compute LSN is tricky
Problem
neon endpoint list
shows a different LSN than what the state of the replica is. This is mainly down to what we define as LSN in this output. If we define it as the LSN that a compute was started with, it only makes sense to show it for static computes.Summary of changes
Removed the output of
last_record_lsn
for primary/hot standby computes.Closes: #5825