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

fix: validator page validation vs ledger_closed race condition #917

Merged
merged 6 commits into from
Jan 12, 2024

Conversation

jonathanlei
Copy link
Contributor

@jonathanlei jonathanlei commented Jan 11, 2024

High Level Overview of Change

See issue #684

Context of Change

the validator page is stuck when retrieving info on a validator that has validated a ledger which doesn't have a state of validated or cannot be found, resulting in a "Something bad happened" page, see image:
image

Solution:
add error catching and log the error, return response anyway without last updated time and ledger index

Screenshot 2024-01-10 at 3 08 18 PM

Type of Change

  • [ X] Bug fix (non-breaking change which fixes an issue)

Test Plan

added test in Validator.test.js

@jonathanlei jonathanlei changed the title Fix VHS stuck when ledger not found Fix validator page stuck when retrieving info on a validator that has validated a ledger that has not have a state of validated Jan 11, 2024
@jonathanlei jonathanlei changed the title Fix validator page stuck when retrieving info on a validator that has validated a ledger that has not have a state of validated fix: validator page validation vs ledger_closed race condition Jan 11, 2024
Copy link
Contributor

@JST5000 JST5000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - just one typo

@jonathanlei
Copy link
Contributor Author

LGTM - just one typo

oh I thought it's okay to use abbreviation haha i've used indx in other code before

Co-authored-by: Jackson Mills <aim4math@gmail.com>
@JST5000
Copy link
Contributor

JST5000 commented Jan 12, 2024

oh I thought it's okay to use abbreviation haha i've used indx in other code before

It's not the end of the world, but it only saves a letter & can trip someone up when typing, so I figure writing it all out is better :)

@ckniffen ckniffen merged commit 90e2531 into staging Jan 12, 2024
4 checks passed
@ckniffen ckniffen deleted the fix-vhs-logging-error branch January 12, 2024 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants