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(stream_family): Fix memory tracking for the STREAMs. SECOND PR #4781

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

BagritsevichStepan
Copy link
Contributor

The problem is described in the first PR: #4777

@BagritsevichStepan BagritsevichStepan self-assigned this Mar 16, 2025
@adiholden adiholden requested a review from kostasrim March 17, 2025 07:05
// the tracker will report a negative net (since we deallocated),
// so the object now consumes less memory than it did before. This DCHECK
// is for fanity and to catch any potential issues with our tracking approach.
u_.r_obj.SetSize(UpdateSize(u_.r_obj.Size(), size));
Copy link
Contributor

Choose a reason for hiding this comment

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

This is the only functional difference from the other PR. Consider merging them into one if this is just a single line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's merge the PR for JSON first because I see that the fakeredis tests are failing. It might take some time to understand what the bug is. And then maybe we will need to fix stream memory tracking in other places to pass the tests

Copy link
Contributor

Choose a reason for hiding this comment

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

no issue with that -- whatever is more convenient

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.

2 participants