Skip to content

[CLIENT-3914] Fix memory leak when aerospike.GeoJSON instance is used in an expression - #1157

Open
juliannguyen4 wants to merge 12 commits into
CLIENT-3915-add-suppression-that-ignores-all-possibly-lost-or-reachable-stack-traces-without-client-linesfrom
jnguyen/CLIENT-3914-address-AerospikeGeospatial_DoDumps-memory-leak
Open

[CLIENT-3914] Fix memory leak when aerospike.GeoJSON instance is used in an expression#1157
juliannguyen4 wants to merge 12 commits into
CLIENT-3915-add-suppression-that-ignores-all-possibly-lost-or-reachable-stack-traces-without-client-linesfrom
jnguyen/CLIENT-3914-address-AerospikeGeospatial_DoDumps-memory-leak

Conversation

@juliannguyen4

@juliannguyen4 juliannguyen4 commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Extra changes

Address potential memory leak when geo_within_radius and geo_contains_point predicates raise an exception.

TODO

  • There is still one SSL leak to be resolved that happens intermittently
  • If all definitely lost leaks are resolved, we do not need custom suppressions anymore.
  • Suspect that this bug exists in all currently non-EOL python client versions from looking at the code. So need to document this in release notes

…ght come from negative codepath for geo_within_radius and geo_contains_point predicates
@juliannguyen4
juliannguyen4 changed the base branch from dev to CLIENT-3915-add-suppression-that-ignores-all-possibly-lost-or-reachable-stack-traces-without-client-lines July 22, 2026 14:19
…hon client. C client doesn't doesn't have a helper function to clean up memory owned by as_exp_entry instances.
…d by Python client. C client doesn't doesn't have a helper function to clean up memory owned by as_exp_entry instances."

This reverts commit fdd0d5e.
…n as_exp_compile, so we revert the last two commits. But as_geojson values that use a heap allocated string need to set a different flag than as_val.free to clean up that string
@codecov-commenter

codecov-commenter commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.39%. Comparing base (b63ba5e) to head (5b527a2).

Additional details and impacted files
@@                                                            Coverage Diff                                                             @@
##           CLIENT-3915-add-suppression-that-ignores-all-possibly-lost-or-reachable-stack-traces-without-client-lines    #1157   +/-   ##
==========================================================================================================================================
  Coverage                                                                                                      85.38%   85.39%           
==========================================================================================================================================
  Files                                                                                                            101      101           
  Lines                                                                                                          14609    14614    +5     
==========================================================================================================================================
+ Hits                                                                                                           12474    12479    +5     
  Misses                                                                                                          2135     2135           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…ost-or-reachable-stack-traces-without-client-lines' into jnguyen/CLIENT-3914-address-AerospikeGeospatial_DoDumps-memory-leak
…ost-or-reachable-stack-traces-without-client-lines' into jnguyen/CLIENT-3914-address-AerospikeGeospatial_DoDumps-memory-leak
…ost-or-reachable-stack-traces-without-client-lines' into jnguyen/CLIENT-3914-address-AerospikeGeospatial_DoDumps-memory-leak
…ost-or-reachable-stack-traces-without-client-lines' into jnguyen/CLIENT-3914-address-AerospikeGeospatial_DoDumps-memory-leak
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