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

Fixes a scan_buffer_pool leak #1734

Merged
merged 1 commit into from
Mar 18, 2024
Merged

Fixes a scan_buffer_pool leak #1734

merged 1 commit into from
Mar 18, 2024

Conversation

batiati
Copy link
Contributor

@batiati batiati commented Mar 17, 2024

If get_account_balances was called with an invalid account or an account without flags.history == true, then the scan_buffer_pool would not be reset for the next call with a valid filter.

It also writes unit tests that reproduce the bug.

If `get_account_balances` was called with an invalid account or an account without `flags.history == true`,
then the `scan_buffer_pool` would not be reset for the next call with a valid filter.

It also writes unit tests that reproduce the bug.
}

// TODO(batiati): Improve the way we do validations on the state machine.
log.info(
"invalid filter for get_account_balances: {any}",
Copy link
Member

Choose a reason for hiding this comment

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

I think this error message is not necessarily correct anymore. Unless querying an account that doesn't exist or doesn't set history qualifies as an "invalid filter"? But we can fix this later, seeing as this is just placeholder error handling anyhow.

@batiati batiati added this pull request to the merge queue Mar 18, 2024
Merged via the queue into main with commit d9b9c42 Mar 18, 2024
27 checks passed
@batiati batiati deleted the batiati-fix-scan-buffer-leak branch March 18, 2024 09:01
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

2 participants