Repository navigation
Remove update queue opnum from CollectionInfo - #8127
Conversation
1805bfa to
b0b04a8
Compare
| @@ -751,8 +751,6 @@ message PayloadSchemaInfo { | |||
| message UpdateQueueInfo { | |||
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
| "description": "Update queue status", | ||
| "anyOf": [ | ||
| { | ||
| "$ref": "#/components/schemas/UpdateQueueInfo" | ||
| "$ref": "#/components/schemas/ShardUpdateQueueInfo" | ||
| }, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
@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.
Follow up on #8108
The
op_numfield is removed from theCollectionInfobecause it can't be aggregated.However we can keep it in the shard level telemetry.