Skip to content

[2.8] [MOD-12414] Add Internal cursor reads metric to cluster FT.PROFILE output #7751

Merged
meiravgri merged 4 commits into2.8from
backport-7709-to-2.8
Dec 14, 2025
Merged

[2.8] [MOD-12414] Add Internal cursor reads metric to cluster FT.PROFILE output #7751
meiravgri merged 4 commits into2.8from
backport-7709-to-2.8

Conversation

@meiravgri
Copy link
Copy Markdown
Collaborator

@meiravgri meiravgri commented Dec 11, 2025

backport #7709 to 2.8


Note

Expose per-shard cursor read count in FT.PROFILE AGGREGATE and track cumulative timeout state across multiple cursor reads, with tests.

  • Profiling/Execution:
    • Add size_t cursor_reads to AREQ and increment it in runCursor(); expose in profile as Internal cursor reads when QEXEC_F_IS_CURSOR.
    • Accumulate timeout state across cursor reads by changing req->has_timedout = ... to req->has_timedout |= ... and pass the accumulated value to profile printer.
  • Profile Output:
    • RESP3: add "Internal cursor reads" to profile map for cursor requests.
    • RESP2: add ['Internal cursor reads', <count>] array in profile for cursor requests.
  • Tests:
    • Add helpers to extract shard profiles and new tests ensuring Internal cursor reads exists and equals expected counts in shard profiles for FT.PROFILE ... AGGREGATE (RESP2/RESP3, cluster).
    • Adjust an index in test_MOD_7454 union profile parsing to match updated response structure.

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

[MOD-12414] Add `Internal cursor reads` metric to cluster FT.PROFILE output (#7709)

* add cursor_reads to req struct

update in runCursor

print in Profile_Print if cursor

* Fix: Preserve timeout flag across cursor reads in cluster FT.PROFILE

Use |= instead of = to ensure has_timedout remains true once set,
preventing earlier cursor read warnings from being lost in final output.

* fix test

* fix test

* add message to the test

(cherry picked from commit 005186a)
@meiravgri meiravgri changed the title [2.8] [MOD-12414] Add Internal cursor reads metric to cluster FT.PROFILE output ( [2.8] [MOD-12414] Add Internal cursor reads metric to cluster FT.PROFILE output Dec 11, 2025
meiravgri and others added 2 commits December 11, 2025 14:13
…ROFILE output (#7746)

* [MOD-12414] Add `Internal cursor reads` metric to cluster FT.PROFILE output (#7709)

* add cursor_reads to req struct

update in runCursor

print in Profile_Print if cursor

* Fix: Preserve timeout flag across cursor reads in cluster FT.PROFILE

Use |= instead of = to ensure has_timedout remains true once set,
preventing earlier cursor read warnings from being lost in final output.

* fix test

* fix test

* add message to the test

(cherry picked from commit 005186a)

* fix test

* fix test

* fix test

(cherry picked from commit 1911f5b)
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.60%. Comparing base (fe103d9) to head (5b6f740).
⚠️ Report is 1 commits behind head on 2.8.

Additional details and impacted files
@@            Coverage Diff             @@
##              2.8    #7751      +/-   ##
==========================================
- Coverage   87.63%   87.60%   -0.04%     
==========================================
  Files         203      203              
  Lines       35215    35227      +12     
==========================================
- Hits        30862    30860       -2     
- Misses       4353     4367      +14     
Flag Coverage Δ
flow 82.00% <100.00%> (-0.25%) ⬇️
unit 42.19% <0.00%> (-0.02%) ⬇️

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.

@meiravgri meiravgri enabled auto-merge December 11, 2025 15:39
@meiravgri meiravgri requested a review from GuyAv46 December 14, 2025 04:52
@meiravgri meiravgri added this pull request to the merge queue Dec 14, 2025
Merged via the queue into 2.8 with commit de23195 Dec 14, 2025
16 of 18 checks passed
@meiravgri meiravgri deleted the backport-7709-to-2.8 branch December 14, 2025 09:04
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