cadonna commented on a change in pull request #10052: URL: https://github.com/apache/kafka/pull/10052#discussion_r570207387
########## File path: streams/src/test/java/org/apache/kafka/streams/state/internals/InMemoryKeyValueStoreTest.java ########## @@ -60,4 +67,22 @@ public void shouldRemoveKeysWithNullValues() { assertThat(store.get(0), nullValue()); } + + + @Test + public void shouldReturnKeysWithGivenPrefix(){ + store = createKeyValueStore(driver.context()); + final String value = "value"; + final List<KeyValue<Integer, String>> entries = new ArrayList<>(); + entries.add(new KeyValue<>(1, value)); + entries.add(new KeyValue<>(2, value)); + entries.add(new KeyValue<>(11, value)); + entries.add(new KeyValue<>(13, value)); + + store.putAll(entries); + final KeyValueIterator<Integer, String> keysWithPrefix = store.prefixScan(1, new IntegerSerializer()); Review comment: Thank you for pointing this out! I will have a look at this in the next days. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org