Skip to content

Remove update queue opnum from CollectionInfo - #8127

Merged
agourlay merged 1 commit into
devfrom
remove-update-queue-opnum-from-collection-info
Feb 13, 2026
Merged

agourlay merged 1 commit into
devfrom
remove-update-queue-opnum-from-collection-info

Conversation

@agourlay

@agourlay agourlay commented Feb 13, 2026 •

Copy link
Copy Markdown
Member

Follow up on #8108

The op_num field is removed from the CollectionInfo because it can't be aggregated.

However we can keep it in the shard level telemetry.

@agourlay
agourlay force-pushed the remove-update-queue-opnum-from-collection-info branch from 1805bfa to b0b04a8 Compare February 13, 2026 14:36
@agourlay
agourlay marked this pull request as ready for review February 13, 2026 15:38
@@ -751,8 +751,6 @@ message PayloadSchemaInfo {
message UpdateQueueInfo {

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.

I decided to keep the UpdateQueueInfo structure even though it has a single field.

The rational is that we might want to extend it in the future.

Not a strong argument though.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@docs/redoc/master/openapi.json`:
- Around line 12601-12605: The change was made directly in the generated OpenAPI
JSON (docs/redoc/master/openapi.json) but this file is auto-generated; instead,
update the source schema definitions that feed generation—specifically modify
the REST schema (e.g., lib/api/src/rest/schema.rs) or the gRPC proto (e.g.,
lib/api/src/grpc/proto/points.proto) where the ShardUpdateQueueInfo description
is declared, then re-run the OpenAPI generation to regenerate
docs/redoc/master/openapi.json so your updated "Update queue status" description
appears in the generated JSON.

Comment on lines 12601 to 12605
"description": "Update queue status",
"anyOf": [
{
"$ref": "#/components/schemas/UpdateQueueInfo"
"$ref": "#/components/schemas/ShardUpdateQueueInfo"
},

@coderabbitai coderabbitai Bot Feb 13, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Autogenerated OpenAPI: update source schemas, not this JSON.

docs/redoc/master/openapi.json is generated; direct edits will be overwritten. Please move these changes to the source REST/GRPC schema definitions and re-generate the OpenAPI output.

Based on learnings, "docs/redoc/master/openapi.json is auto-generated. Any description changes must be made in the source (e.g., lib/api/src/rest/schema.rs and/or lib/api/src/grpc/proto/points.proto), not edited directly in the JSON."

Also applies to: 13351-13369

🤖 Prompt for AI Agents
In `@docs/redoc/master/openapi.json` around lines 12601 - 12605, The change was
made directly in the generated OpenAPI JSON (docs/redoc/master/openapi.json) but
this file is auto-generated; instead, update the source schema definitions that
feed generation—specifically modify the REST schema (e.g.,
lib/api/src/rest/schema.rs) or the gRPC proto (e.g.,
lib/api/src/grpc/proto/points.proto) where the ShardUpdateQueueInfo description
is declared, then re-run the OpenAPI generation to regenerate
docs/redoc/master/openapi.json so your updated "Update queue status" description
appears in the generated JSON.

@agourlay agourlay Feb 13, 2026 •

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.

This is the schema for the telemetry endpoint.

It is not exposed with gRPC.

The type LocalShardTelemetry has been changed which result in this change.

What else am I suppose to update?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@agourlay Thanks for the context — you’re right: this concerns the REST telemetry schema only.

Short answer: if docs/redoc/master/openapi.json in this PR was regenerated from the Rust types (not hand-edited), you’re all set and nothing else needs updating.

Why I flagged it: that file is generated. The only requirement is that the source Rust types that feed the telemetry endpoint are correct:

  • LocalShardTelemetry.update_queue -> Option (with length and optional op_num)
  • CollectionInfo.update_queue -> Option (length only)
  • Conversions drop op_num when aggregating to collection level

From the changes in this PR, those points are already handled, and the tests were updated to assert shard-level op_num.

Action check:

  • If you manually tweaked openapi.json: please revert manual edits, then regenerate the OpenAPI from the Rust sources (whatever the usual script/Make target is in this repo).
  • If you already regenerated it: we’re good; no further updates needed.

Also noting for future reviews: telemetry’s schema is REST-only, so no gRPC work is required for that endpoint.


✏️ Learnings added
Learnt from: agourlay
Repo: qdrant/qdrant PR: 8127
File: docs/redoc/master/openapi.json:12601-12605
Timestamp: 2026-02-13T16:04:08.952Z
Learning: In qdrant, the /telemetry endpoint schema is REST-only; OpenAPI for telemetry is generated from the Rust REST-visible telemetry types (e.g., LocalShardTelemetry, ShardUpdateQueueInfo). Do not request gRPC changes when telemetry schema changes.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.


🧠 Learnings used
Learnt from: generall
Repo: qdrant/qdrant PR: 7006
File: docs/redoc/master/openapi.json:10393-10401
Timestamp: 2025-08-10T18:26:33.017Z
Learning: In qdrant, docs/redoc/master/openapi.json is auto-generated. Any description changes must be made in the source (e.g., lib/api/src/rest/schema.rs and/or lib/api/src/grpc/proto/points.proto), not edited directly in the JSON.

Learnt from: generall
Repo: qdrant/qdrant PR: 7006
File: docs/redoc/master/openapi.json:13645-13652
Timestamp: 2025-08-10T18:26:12.443Z
Learning: In qdrant, docs/redoc/master/openapi.json is auto-generated from the REST schemas. To change field docs, edit lib/api/src/rest/schema.rs (e.g., add doc comments or #[schemars(description = ...)]). Specifically, UpdateVectors.update_filter lacked a description and should state: "If specified, only update vectors for points that match this filter; points not matching the filter are left unchanged."

Learnt from: generall
Repo: qdrant/qdrant PR: 7006
File: docs/redoc/master/openapi.json:10626-10634
Timestamp: 2025-08-10T18:25:16.206Z
Learning: In Qdrant, docs/redoc/master/openapi.json is autogenerated from the Rust REST schema definitions (e.g., lib/api/src/rest/schema.rs). To change OpenAPI descriptions, update the Rust struct field doc comments/attributes rather than editing the JSON directly.

Learnt from: generall
Repo: qdrant/qdrant PR: 7183
File: lib/api/src/grpc/qdrant.rs:4263-4273
Timestamp: 2025-09-16T19:14:17.614Z
Learning: In qdrant, lib/api/src/grpc/qdrant.rs is auto-generated by prost-build; do not edit it directly. Make changes in lib/api/src/grpc/proto/points.proto (e.g., add [deprecated=true], doc comments, or encoding options), then regenerate the Rust code.

@agourlay agourlay added this to the Update queue milestone Feb 13, 2026
@qdrant qdrant deleted a comment from coderabbitai Bot Feb 13, 2026
@agourlay
agourlay merged commit 5ffc6a4 into dev Feb 13, 2026
15 checks passed
@agourlay
agourlay deleted the remove-update-queue-opnum-from-collection-info branch February 13, 2026 16:36
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.

3 participants