Skip to content

NVQParameters.idStringFor throws MissingFormatArgumentException #779

Open

Description

@tlwillke

CompressorParameters.NVQParameters.idStringFor (jvector-examples, util/CompressorParameters.java, line 89) formats "NVQ_%s_%d_%s" with only two arguments (ds.getName() and nSubVectors), so every call throws MissingFormatArgumentException.

NVQParameters.supportsCaching() returns true, so Grid.getCompressor calls idStringFor whenever an NVQParameters is used as a build or search compressor. Nothing constructs NVQParameters today, so the bug can't currently be triggered. It will fail as soon as NVQ is offered as a compressor option.

The bug has been there since e8d5c3c (#374). Fix: drop the trailing _%s.

Activity

  1. self-assigned this
    on Nov 2, 2026
  2. added a commit that references this issue on Nov 2, 2026
    f8ca7e5
  3. linked a pull request that will close this issueFix NVQParameters.idStringFor format string #780on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions