I have a compact topic with approx 30Mio Keys.
My App materializes this topic to a KeyValueStore.
How can I check if the KeyValueStore is completely populated? If I lookup a key via InteractiveQuery I need to know if the key is not present because the StateStore is not ready yet or if the key is indeed not present.
I materialize the StateStore this way:
@Bean
public Consumer<KTable<Key, Value>> process() {
return stream -> stream.filter((k, v) -> v != null,
Materialized.<Key, Value, KeyValueStore<Bytes, byte[]>>as("stateStore")
.withKeySerde(new KeySerde())
.withValueSerde(new ValueSerde()));
}