Skip to content

[8.6] MOD-13735 MOD-13181 Fix FT.PROFILE shard total profile time#8140

Merged
redisearch-backport-pull-request[bot] merged 1 commit into8.6from
backport-8129-to-8.6
Jan 25, 2026
Merged

[8.6] MOD-13735 MOD-13181 Fix FT.PROFILE shard total profile time#8140
redisearch-backport-pull-request[bot] merged 1 commit into8.6from
backport-8129-to-8.6

Conversation

@redisearch-backport-pull-request
Copy link
Contributor

@redisearch-backport-pull-request redisearch-backport-pull-request bot commented Jan 22, 2026

Description

Backport of #8129 to 8.6.


Note

Fixes shard timing in FT.PROFILE

  • In aggregate_exec.c, accumulate elapsed time for intermediate cursor reads into req->profileTotalTime when profiling cursor queries; keeps final read accounted in Profile_Print.
  • Continue recording duration for global stats; no change to result serialization or control flow.

Tests added

  • New timing consistency suite ensuring Total profile time ≥ sum of Result Processor Time across SEARCH/AGGREGATE, RESP2/RESP3, standalone/cluster, including multi-read cursors.
  • Helper utilities for summing RP times and extracting shard/coordinator sections.

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

* Fix FT.PROFILE shard total profile time

* Avoid double count on non-cursor Timeout Return failures

* Move out of the if (Ok | Timeout) block

* Add tests

* Enhance tests to cover more cases

(cherry picked from commit fd63e0c)
@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.77%. Comparing base (378c7aa) to head (c57bdc9).
⚠️ Report is 4 commits behind head on 8.6.

Additional details and impacted files
@@            Coverage Diff             @@
##              8.6    #8140      +/-   ##
==========================================
+ Coverage   83.75%   83.77%   +0.01%     
==========================================
  Files         365      365              
  Lines       55277    55279       +2     
  Branches    14296    14296              
==========================================
+ Hits        46297    46308      +11     
+ Misses       8819     8810       -9     
  Partials      161      161              
Flag Coverage Δ
flow 84.67% <100.00%> (+0.07%) ⬆️
unit 50.67% <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.

@redisearch-backport-pull-request redisearch-backport-pull-request bot added this pull request to the merge queue Jan 25, 2026
Merged via the queue into 8.6 with commit c7f8cd7 Jan 25, 2026
63 checks passed
@redisearch-backport-pull-request redisearch-backport-pull-request bot deleted the backport-8129-to-8.6 branch January 25, 2026 08:35
@ofiryanai ofiryanai changed the title [8.6] MOD-13181 Fix FT.PROFILE shard total profile time [8.6] MOD-13735 MOD-13181 Fix FT.PROFILE shard total profile time Jan 25, 2026
github-merge-queue bot pushed a commit that referenced this pull request Jan 25, 2026
… (#8150)

MOD-13181 Fix FT.PROFILE shard total profile time (#8129)

* Fix FT.PROFILE shard total profile time

* Avoid double count on non-cursor Timeout Return failures

* Move out of the if (Ok | Timeout) block

* Add tests

* Enhance tests to cover more cases

(cherry picked from commit fd63e0c)
github-merge-queue bot pushed a commit that referenced this pull request Jan 25, 2026
… (#8151)

MOD-13181 Fix FT.PROFILE shard total profile time (#8129)

* Fix FT.PROFILE shard total profile time

* Avoid double count on non-cursor Timeout Return failures

* Move out of the if (Ok | Timeout) block

* Add tests

* Enhance tests to cover more cases

(cherry picked from commit fd63e0c)
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.

1 participant