-
Notifications
You must be signed in to change notification settings - Fork 38
fix: use committed account size for buffer allocation to handle >10KB growth #943
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
Open
vikions
wants to merge
7
commits into
magicblock-labs:master
Choose a base branch
from
vikions:fix/issue-878-realloc-buffer-size
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3fb2902
fix: use committed account size for buffer allocation in CommitDiff- …
vikions 2f622b5
fix: remove unnecessary clone in buffer_task
vikions 0c5840c
Merge branch 'master' into fix/issue-878-realloc-buffer-size
vikions 0b2c487
fix: ignore error on delete in fat truncation. Case when the disk is …
taco-paco 222444b
fix: prevent overrides on subscription updates (#970)
GabrielePicco 4d5c092
test: add tests for buffer_account_size logic in CommitDiff
vikions dc9431f
test: improve test coverage for >10KB realloc scenario
vikions File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick | 🔵 Trivial
Minor: poll condition waits for eATA only — ATA-projection decision may not be settled yet.
The test polls until
eata_pubkeyappears in the bank and then immediately reads the ATA. If the subscription handler processes the eATA clone and the ATA-projection-skip in separate async steps (with a yield between them), there is a brief window where the eATA is visible in the bank but the handler hasn't yet decided whether to overwrite the ATA. This means the test could produce a false-positive if a bug causes the ATA overwrite to happen after this check.Existing test
test_delegated_eata_subscription_update_clones_raw_eata_and_projects_ata(line 2224) polls forhas_eata && has_ataprecisely to bridge this gap. Consider adding a small stable-state guard, or simply adding atokio::task::yield_now().awaitafter the timeout block to let any pending projection task run before asserting the ATA state.💡 Proposed guard (minimal change)
}) .await .expect("timed out waiting for delegated eATA subscription update"); +// Yield to let any pending ATA-projection step complete before asserting. +tokio::task::yield_now().await; let ata_after = accounts_bank🤖 Prompt for AI Agents