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

Notify telemetry only every second about the tx pool status #6605

Merged
merged 3 commits into from
Nov 24, 2024

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Nov 21, 2024

Before this was done for every imported transaction. When a lot of transactions got imported, the import notification channel was filled. The underlying problem was that the status call is read locking the validated_pool which will be write locked by the internal submitting logic. Thus, the submitting and status reading was interferring which each other.

Before this was done for every imported transaction. When a lot of transactions got imported,
the import notification channel was filled. The underlying problem was that the `status` call
is read locking the `validated_pool` which will be write locked by the internal submitting logic.
Thus, the submitting and status reading was interferring which each other.
@bkchr bkchr added the T0-node This PR/Issue is related to the topic “node”. label Nov 21, 2024
@michalkucharczyk
Copy link
Contributor

for the record: #6600 (comment)

@bkchr
Copy link
Member Author

bkchr commented Nov 22, 2024

/cmd prdoc --audience node_operator --bump patch

@bkchr bkchr requested a review from AndreiEres November 22, 2024 07:40
@bkchr bkchr enabled auto-merge November 22, 2024 07:41
@bkchr bkchr added this pull request to the merge queue Nov 24, 2024
Merged via the queue into master with commit 1e3b8e1 Nov 24, 2024
190 of 198 checks passed
@bkchr bkchr deleted the bkchr-tx-pool-telemetry branch November 24, 2024 09:27
Krayt78 pushed a commit to Krayt78/polkadot-sdk that referenced this pull request Dec 18, 2024
…ch#6605)

Before this was done for every imported transaction. When a lot of
transactions got imported, the import notification channel was filled.
The underlying problem was that the `status` call is read locking the
`validated_pool` which will be write locked by the internal submitting
logic. Thus, the submitting and status reading was interferring which
each other.

---------

Co-authored-by: GitHub Action <[email protected]>
dudo50 pushed a commit to paraspell-research/polkadot-sdk that referenced this pull request Jan 4, 2025
…ch#6605)

Before this was done for every imported transaction. When a lot of
transactions got imported, the import notification channel was filled.
The underlying problem was that the `status` call is read locking the
`validated_pool` which will be write locked by the internal submitting
logic. Thus, the submitting and status reading was interferring which
each other.

---------

Co-authored-by: GitHub Action <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T0-node This PR/Issue is related to the topic “node”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants