muralibasani commented on code in PR #22901:
URL: https://github.com/apache/kafka/pull/22901#discussion_r3669881069
##########
streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/HeadersStoreUpgradeIntegrationTest.java:
##########
@@ -371,67 +484,27 @@ private <K, V> void
processKeyValueAndVerifyTimestampedValue(final K key,
final long
timestamp)
throws Exception {
- IntegrationTestUtils.produceKeyValuesSynchronouslyWithTimestamp(
- inputStream,
- singletonList(KeyValue.pair(key, value)),
- TestUtils.producerConfig(CLUSTER.bootstrapServers(),
- StringSerializer.class,
- StringSerializer.class),
- timestamp,
- false);
-
- TestUtils.waitForCondition(
- () -> {
- try {
- final ReadOnlyKeyValueStore<K, ValueAndTimestamp<V>> store
=
- IntegrationTestUtils.getStore(STORE_NAME,
kafkaStreams, QueryableStoreTypes.timestampedKeyValueStore());
+ produce(key, value, timestamp);
- if (store == null) {
- return false;
- }
-
- final ValueAndTimestamp<V> result = store.get(key);
- return result != null && result.value().equals(value) &&
result.timestamp() == timestamp;
- } catch (final Exception swallow) {
- LOG.error("Error while checking store result", swallow);
- return false;
- }
+ awaitStore(STORE_NAME, QueryableStoreTypes.<K,
V>timestampedKeyValueStore(),
Review Comment:
Done.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]