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: fix pbss async node buffer force flush buffer #2885

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

sysvm
Copy link
Contributor

@sysvm sysvm commented Feb 9, 2025

Description

Fix TestDisable UT failure.

Rationale

Trie uses bytesPool to improve updateTrie performance to avoid extra memory allocation. However, PBSS uses asyncnodebuffer to store data which is a async operation. So TestDisable UT cannot pass due to the data in PBSS is async mode and in UT use force flush.

Example

N/A

Changes

Notable changes:

  • N/A

triedb/pathdb/asyncnodebuffer.go Outdated Show resolved Hide resolved
triedb/pathdb/disklayer.go Outdated Show resolved Hide resolved
will-2012
will-2012 previously approved these changes Feb 10, 2025
galaio
galaio previously approved these changes Feb 11, 2025
@zzzckck zzzckck changed the base branch from master to develop February 11, 2025 03:46
@zzzckck zzzckck dismissed stale reviews from galaio and will-2012 February 11, 2025 03:46

The base branch was changed.

@zzzckck zzzckck merged commit 5f7ce67 into bnb-chain:develop Feb 11, 2025
7 checks passed
@sysvm sysvm deleted the fix-pbssut branch February 11, 2025 03:49
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.

7 participants