Skip to content

Honor lag_timeout_ms while typed indexes await first materialization #227

Description

@zcourts

Problem

Typed JSON queries return TypedJsonIndexNotMaterialised immediately when the index has no first generation, even when the caller supplies a non-zero lag_timeout_ms. Worka can successfully install an index and write source objects, then race the asynchronous first build.

Scope

  • Wait up to lag_timeout_ms for the first typed-field segment.
  • Preserve immediate failure when the timeout is zero.
  • Return TypedJsonIndexNotMaterialised only after the deadline.
  • Add regression coverage for the initial-materialization lifecycle.
  • Verify Worka’s real Anvil device capability contract on a fresh bucket.

Acceptance criteria

A query issued before the first generation either succeeds when materialization completes inside its declared lag timeout or returns the existing failed-precondition error after that timeout.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions