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 the invalid memory write bug for aggregating index. #13165

Merged
merged 4 commits into from
Oct 11, 2023

Conversation

RinChanNOWWW
Copy link
Contributor

@RinChanNOWWW RinChanNOWWW commented Oct 10, 2023

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

UPDATE: the memory bug was already fixed by #13153. This PR becomes only providing some unit tests for the bug case.

The orginal summary:

We should hold a owned memory for deserializing aggregating index state instead of use the memory owned by the hashtable.
Because the hashtable will be moved out when spilling and we will lose the control of the memory.


This change is Reviewable

@vercel
Copy link

vercel bot commented Oct 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
databend ⬜️ Ignored (Inspect) Visit Preview Oct 11, 2023 6:21am

@RinChanNOWWW RinChanNOWWW marked this pull request as ready for review October 10, 2023 06:14
@github-actions github-actions bot added the pr-bugfix this PR patches a bug in codebase label Oct 10, 2023
@sundy-li sundy-li enabled auto-merge October 10, 2023 14:37
@sundy-li sundy-li added this pull request to the merge queue Oct 10, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 10, 2023
@sundy-li sundy-li added this pull request to the merge queue Oct 11, 2023
Merged via the queue into databendlabs:main with commit 84c6fa5 Oct 11, 2023
61 checks passed
@RinChanNOWWW RinChanNOWWW deleted the fix-agg-index branch October 11, 2023 07:51
andylokandy pushed a commit to andylokandy/databend that referenced this pull request Nov 27, 2023
…dlabs#13165)

* fix: fix the invalid memory write bug for aggregating index.

* Remove.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix this PR patches a bug in codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants