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: op-batcher batch-tx-submitted metric double count #11438

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

samlaf
Copy link
Contributor

@samlaf samlaf commented Aug 12, 2024

Description

Noticed when playing around with the devnet that the batchtx-submitted metric count was always 2x the nonce of the txmgr, which doesn't make sense.

Realized that RecordBatchTxSubmitted is called twice:

  1. s.metr.RecordBatchTxSubmitted()
  2. s.metr.RecordBatchTxSubmitted()

    whereas RecordBatchTxSuccess is never called. So potentially one of the two calls to RecordBatchTxSubmitted should have been a call to RecordBatchTxSuccess instead?
    image

I just deleted one of them, but probably someone with more context will be able to understand the best fix here. Happy to make any modifications to this PR. :)

Tests

Please describe any tests you've added. If you've added no tests, or left important behavior untested, please explain why not.

Additional context

Add any other context about the problem you're solving.

Metadata

  • Fixes #[Link to Issue]

@samlaf samlaf requested a review from a team as a code owner August 12, 2024 04:30
@samlaf samlaf requested a review from mslipper August 12, 2024 04:30
Copy link
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Aug 27, 2024
@samlaf
Copy link
Contributor Author

samlaf commented Aug 27, 2024

@tynes

@tynes
Copy link
Contributor

tynes commented Sep 12, 2024

I believe this is a good change

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.

3 participants