Skip to content

[2.10] Fix cursor logical leak - [MOD-12807]#7686

Merged
GuyAv46 merged 3 commits into2.10from
backport-7667-to-2.10
Dec 9, 2025
Merged

[2.10] Fix cursor logical leak - [MOD-12807]#7686
GuyAv46 merged 3 commits into2.10from
backport-7667-to-2.10

Conversation

@GuyAv46
Copy link
Collaborator

@GuyAv46 GuyAv46 commented Dec 9, 2025

Description

Manual backport of #7667 to 2.10.


Note

Free the cursor when its index was dropped before a cursor read and pause the cursor when PROFILE is requested for a non-profile cursor, with a regression test validating cursor cleanup and error behavior.

  • Cursor management:
    • Free cursor if its associated index/spec was dropped before FT.CURSOR READ (cursorRead), replying with error "The index was dropped while the cursor was idle".
    • When handling FT.CURSOR PROFILE, if the cursor isn't a profile request, pause it again before returning an error.
  • Tests:
    • Add test_mod_12807 to verify idle cursor is removed and proper error is returned after dropping the index, and to check INFO MODULES cursor counters.

Written by Cursor Bugbot for commit 2e16915. This will update automatically on new commits. Configure here.

* add a failing test

* fix

(cherry picked from commit 461908e)
@GuyAv46 GuyAv46 added this pull request to the merge queue Dec 9, 2025
@codecov
Copy link

codecov bot commented Dec 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.42%. Comparing base (698c3bb) to head (2e16915).
⚠️ Report is 2 commits behind head on 2.10.

Additional details and impacted files
@@            Coverage Diff             @@
##             2.10    #7686      +/-   ##
==========================================
- Coverage   89.44%   89.42%   -0.03%     
==========================================
  Files         210      210              
  Lines       36010    36012       +2     
==========================================
- Hits        32210    32203       -7     
- Misses       3800     3809       +9     
Flag Coverage Δ
flow 84.06% <100.00%> (-0.15%) ⬇️
unit 42.11% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.

Merged via the queue into 2.10 with commit 57b573f Dec 9, 2025
17 checks passed
@GuyAv46 GuyAv46 deleted the backport-7667-to-2.10 branch December 9, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants