unknowntpo commented on code in PR #23615:
URL: https://github.com/apache/kafka/pull/23615#discussion_r4571141995
##########
streams/src/testFixtures/java/org/apache/kafka/streams/tests/SmokeTestClient.java:
##########
@@ -150,6 +150,10 @@ private Properties getStreamsConfig(final Properties
props) {
fullProps.put(StreamsConfig.CLIENT_ID_CONFIG, "SmokeTest-" + name);
fullProps.put(StreamsConfig.STATE_DIR_CONFIG,
TestUtils.tempDirectory().getAbsolutePath());
fullProps.put(StreamsConfig.PROCESSING_GUARANTEE_CONFIG,
StreamsConfig.EXACTLY_ONCE_V2);
+ // SmokeTestDriver writes records two days in the past, so window
changelogs need more than the
+ // default one-day additional retention.
StreamsSmokeTestBaseService.prop_file() in
+ // tests/kafkatest/services/streams.py passes the same value to the
old clients in system tests;
+ // change both together.
fullProps.put(StreamsConfig.WINDOW_STORE_CHANGE_LOG_ADDITIONAL_RETENTION_MS_CONFIG,
Duration.ofDays(3).toMillis());
Review Comment:
Good point, your approach can make code more consistent, no need to put
comfig in two places, I've added the config to all SmokeTestClient copies under
streams/upgrade-system-tests-*.
I ran test_app_upgrade (all from_versions, --repeat 2) with this change:
38/38 passed, the window changelogs were created with retention.ms=259232000,
and no segments were deleted by retention.
--
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]