Skip to content

Interactive Queries V2 does not support querying a global state store #458

@loicgreffier

Description

@loicgreffier

When querying a global state store through the store/key-value/{storeName} endpoint, the result is always empty.

The KafkaStreams#query call (from https://github.com/michelin/kstreamplify/blob/main/kstreamplify-core/src/main/java/com/michelin/kstreamplify/service/interactivequeries/keyvalue/KeyValueStoreService.java#L86) returns the following error:

Global stores do not yet support the KafkaStreams#query API. Use KafkaStreams#store instead.

Multiple solutions:

  • Do not support querying a global state store in Kstreamplify and at least throw an error to inform the user.
  • Fall back to KafkaStreams#store, as suggested.

Related ASF issue: https://issues.apache.org/jira/browse/KAFKA-13523

Metadata

Metadata

Assignees

No one assigned

    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