-
Notifications
You must be signed in to change notification settings - Fork 23
fix: memory leak in incremental assign #35
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: memory leak in incremental assign #35
Conversation
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.
Thanks for the PR! Just a bunch of minor changes, looks good otherwise.
Co-authored-by: Milind L <[email protected]>
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.
Approving and running CI
|
/sem-approve |
|
I didn't push properly, so the comments weren't added, but that is done now! |
|
@martijnimhoff it looks good to me. As this is our first external PR with code changes, there's a bunch of minor things I'm doing to get the CI to run on this once, and there should be a message from our CLA bot in a while on this PR for you. Thanks! |
|
Here's the link to the CLA that should be signed: https://cla-assistant.io/confluentinc/confluent-kafka-javascript?pullRequest=35 |
|
I've signed it. Should be fine now? |
|
/sem-approve |
|
Closing and reopening PR to try and trigger semaphore CI checks to run. |
|
/sem-approve |
|
Thanks @martijnimhoff for the fix! |
The incremental assign contained a memory leak. This happened because when unassigning, the wrong new pointers are destroyed (m_partitions).
Instead the
partitionsargument should be destroyed, because this is only used to find the right toppars in m_partitions. And the toppars inm_partitionswhich are unassigned also should be destroyed.