Skip to content

Fix update queue length aggregation - #8108

Merged
agourlay merged 1 commit into
devfrom
fix-queue-len-aggregation
Feb 12, 2026
Merged

agourlay merged 1 commit into
devfrom
fix-queue-len-aggregation

Conversation

@agourlay

@agourlay agourlay commented Feb 11, 2026 •

Copy link
Copy Markdown
Member

The queue length reported in the collection info needs to be aggregated across shards.

The PR fixes it by summing the lengths.

Interestingly, switching to a deconstruction approach highlighted a missing aggregation for the warnings field.

for (key, response_schema) in response.payload_schema {
info.points_count = info.points_count.zip(points_count).map(|(a, b)| a + b);
info.segments_count += segments_count;
info.warnings.extend(warnings);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warnings were not aggregated 🙃

@agourlay agourlay added this to the Update queue milestone Feb 11, 2026
@agourlay
agourlay marked this pull request as ready for review February 12, 2026 10:07
@qdrant qdrant deleted a comment from coderabbitai Bot Feb 12, 2026
@agourlay
agourlay requested a review from timvisee February 12, 2026 11:44
@agourlay
agourlay merged commit a538a90 into dev Feb 12, 2026
20 of 21 checks passed
@agourlay
agourlay deleted the fix-queue-len-aggregation branch February 12, 2026 12:14
timvisee pushed a commit that referenced this pull request Feb 13, 2026
KShivendu pushed a commit that referenced this pull request Mar 30, 2026
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