muralibasani commented on code in PR #23738:
URL: https://github.com/apache/kafka/pull/23738#discussion_r4234227747
##########
streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/HeadersStoreUpgradeIntegrationTest.java:
##########
@@ -64,36 +65,51 @@
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInfo;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.time.Duration;
+import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import java.util.Properties;
+import java.util.function.BiConsumer;
import java.util.function.Predicate;
import static java.util.Arrays.asList;
import static java.util.Collections.singletonList;
import static org.apache.kafka.streams.utils.TestUtils.safeUniqueTestName;
import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
+import static org.junit.jupiter.api.Assertions.fail;
@Tag("integration")
public class HeadersStoreUpgradeIntegrationTest {
private static final String STORE_NAME = "store";
private static final String WINDOW_STORE_NAME = "window-store";
private static final String SESSION_STORE_NAME = "session-store";
private static final long WINDOW_SIZE_MS = 1000L;
- private static final long RETENTION_MS = Duration.ofDays(1).toMillis();
+ private static final Duration WINDOW_SIZE =
Duration.ofMillis(WINDOW_SIZE_MS);
+ private static final Duration RETENTION = Duration.ofDays(1);
private static final long DEFAULT_STORE_TIMEOUT_MS = 60_000L;
+ private static final Duration CLOSE_TIMEOUT = Duration.ofSeconds(30L);
+ /**
+ * Timestamp reported through the headers-aware view for records written
to a store that does
+ * not preserve timestamps (a plain key-value or window store, migrated or
proxied).
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]