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

Set poll: false for internal transactions fetcher #8965

Merged
merged 2 commits into from Dec 21, 2023

Conversation

Qwerty5Uiop
Copy link
Collaborator

@Qwerty5Uiop Qwerty5Uiop commented Dec 7, 2023

Motivation

PendingBlockOperations are filled along with blocks (in the same import stage), but transactions are imported in the next stage which means in different db transaction. So there is a time range when pbo already exists in db but transactions doesn't. If internal transactions fetcher starts processing in this time range, pbo will be deleted but internal transactions won't be inserted since their parent transactions doesn't exist.

Changelog

Turn off internal transactions fetcher periodical init rerun, so it will start processing only after manual call from block fetchers

Copy link
Member

@vbaranov vbaranov left a comment

Choose a reason for hiding this comment

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

@Qwerty5Uiop could we create a regression test for this case?

@Qwerty5Uiop Qwerty5Uiop force-pushed the ap-set-poll-false-for-int-trans-fetcher branch from 6177c53 to 8a72e5e Compare December 15, 2023 14:26
@Qwerty5Uiop Qwerty5Uiop force-pushed the ap-set-poll-false-for-int-trans-fetcher branch 2 times, most recently from 040ec16 to 5867510 Compare December 21, 2023 12:28
@vbaranov vbaranov force-pushed the ap-set-poll-false-for-int-trans-fetcher branch from 5867510 to a02b3ed Compare December 21, 2023 12:40
@vbaranov vbaranov merged commit 4a1be45 into master Dec 21, 2023
41 checks passed
@vbaranov vbaranov deleted the ap-set-poll-false-for-int-trans-fetcher branch December 21, 2023 12:59
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