Skip to content

Test an LSM_VECTOR index sized on its first vector under HA and with PRODUCT quantization #10993

Closed

Description

@robfrank

Follow-up of #10915 (PR #10992).

An LSM_VECTOR index created with sizeOnFirstVector (openCypher CREATE VECTOR INDEX without vector.dimensions over a property that holds no vector yet) fixes its dimension on the first put. Two paths are covered only in-process and not on a real cluster or end to end:

  1. HA: the leader marks the schema dirty and saves it at the commit; a follower learns the size from the schema the leader ships or, failing that, by LSMVectorIndex.deriveDimensionsFromData before its first search or graph build. Needs an HA test: create the index on the leader, write the first vector through the leader and through a follower, check every node's getDimensions(), search on a follower, and a failover.
  2. quantization: 'PRODUCT' over such an index: pqSubspaces is computed at graph build from the decided dimension; no test builds a PQ graph over an index sized this way.

Entry points: LSMVectorIndex.sizeOnVector, deriveDimensionsFromData, graph build PQ setup.

Activity

  1. added
    vector
    severity:minor
    on Oct 29, 2026
  2. added
    ha
    on Oct 29, 2026
  3. added this to the 26.11.1 milestone on Oct 30, 2026
  4. self-assigned this
    on Oct 30, 2026
  5. added
    in progress
    on Nov 2, 2026
  6. added a commit that references this issue on Nov 2, 2026
  7. robfrank commented on Nov 2, 2026

    @robfrank
    CollaboratorAuthor

    Fixed in #11139. Added the HA, failover and PRODUCT-quantization tests the issue asked for. The HA test found a real defect: a follower never learned the size an index took from its first vector, so a follower promoted by failover could accept a vector of another length and size the index twice. put now derives the size from the vectors the node already holds first.

    Still open: #11141 (putBatch still sizes from its own batch without deriving first; it is commit replay and index build, which hold the data being sized from).


    ❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.

  8. removed
    in progress
    on Nov 2, 2026
  9. added a commit that references this issue on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

haseverity:minorvector

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions