title: Keeping the local state store updated in a Kafka Streams app
body: <p>I have a log compacted topic in Kafka which I am reading in a KTable and creating a store. Whenever I update a keyed message I don't see the latest state when the app is running. But I am able to see the updated state when I restart the streams application. How to get the updated state while the streams application is running without a restart.</p>
  
  <p>Here's the code (in main function) that I am using to iterate the values from the state. </p>
  
  <pre><code>final String queryableStore = metaTable.queryableStoreName();
  
      ReadOnlyKeyValueStore&lt;String,String&gt; metaTableView = null;
      try {
          metaTableView = waitUntilStoreIsQueryable(queryableStore,QueryableStoreTypes.keyValueStore(),streams);
      } catch (InterruptedException e) {
          e.printStackTrace();
      }
      metaTableView.all().forEachRemaining(row -&gt; logger.info("Key: "+row.key+" Value: "+row.value));
  </code></pre>