-
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
neon endpoint list
shows incorrect LSN for hot standby
#5825
Comments
@alexanderlaw is it still the problem? |
Yes, I've reproduced it with the updated script:
|
Thanks! |
Posting an updated script that worked for me to replicate this issue (needed appropriate role and db specified):
|
The LSN column in the I would suggest only setting the column when the compute is a static compute. Otherwise the LSN does not make sense. |
This week:
|
…0931) ## 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 --------- Co-authored-by: Tristan Partin <tristan@neon.tech>
Steps to reproduce
Actual result
Expected result
The LSN value shown for a hot standby reflects a real LSN position.
Logs, links
.neon/endpoints/main-rep/compute.log contains:
That is, recovery was paused (as expected), but
neon endpoint list
shows a newer LSN for main-rep as if recovery goes on normally.The text was updated successfully, but these errors were encountered: