Skip to content

fix(web-console): fix suspension lag count#327

Merged
insmac merged 1 commit intomainfrom
web-console/suspension-dialog-count
Aug 30, 2024
Merged

fix(web-console): fix suspension lag count#327
insmac merged 1 commit intomainfrom
web-console/suspension-dialog-count

Conversation

@insmac
Copy link
Copy Markdown
Contributor

@insmac insmac commented Aug 29, 2024

When the WAL table is suspended, user can click on the Suspended button next to the table name to diagnose the problem. The current number of transactions behind is derived from writerLagTxnCount property, which gives incorrect results. This PR fixes it by switching to the difference between sequencer and writer txn counts.

const [error, setError] = useState<string | undefined>()

const txnLag =
parseFloat(walTableData.sequencerTxn) - parseFloat(walTableData.writerTxn)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: parseInt() might have been better, txn numbers are integers.

@insmac insmac merged commit bdbe244 into main Aug 30, 2024
@insmac insmac deleted the web-console/suspension-dialog-count branch August 30, 2024 07:05
Vaibhav91one pushed a commit to Vaibhav91one/ui that referenced this pull request Oct 28, 2025
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.

2 participants