@ -236,7 +236,7 @@ public class EosIntegrationTest {
final Properties properties = new Properties ( ) ;
final Properties properties = new Properties ( ) ;
properties . put ( StreamsConfig . PROCESSING_GUARANTEE_CONFIG , eosConfig ) ;
properties . put ( StreamsConfig . PROCESSING_GUARANTEE_CONFIG , eosConfig ) ;
properties . put ( StreamsConfig . CACHE_MAX_BYTES_BUFFERING_CONFIG , 0 ) ;
properties . put ( StreamsConfig . CACHE_MAX_BYTES_BUFFERING_CONFIG , 0 ) ;
properties . put ( StreamsConfig . COMMIT_INTERVAL_MS_CONFIG , 100 ) ;
properties . put ( StreamsConfig . COMMIT_INTERVAL_MS_CONFIG , 100L ) ;
properties . put ( StreamsConfig . consumerPrefix ( ConsumerConfig . MAX_POLL_RECORDS_CONFIG ) , 1 ) ;
properties . put ( StreamsConfig . consumerPrefix ( ConsumerConfig . MAX_POLL_RECORDS_CONFIG ) , 1 ) ;
properties . put ( StreamsConfig . consumerPrefix ( ConsumerConfig . METADATA_MAX_AGE_CONFIG ) , "1000" ) ;
properties . put ( StreamsConfig . consumerPrefix ( ConsumerConfig . METADATA_MAX_AGE_CONFIG ) , "1000" ) ;
properties . put ( StreamsConfig . consumerPrefix ( ConsumerConfig . AUTO_OFFSET_RESET_CONFIG ) , "earliest" ) ;
properties . put ( StreamsConfig . consumerPrefix ( ConsumerConfig . AUTO_OFFSET_RESET_CONFIG ) , "earliest" ) ;
@ -325,7 +325,7 @@ public class EosIntegrationTest {
final Properties properties = new Properties ( ) ;
final Properties properties = new Properties ( ) ;
properties . put ( StreamsConfig . PROCESSING_GUARANTEE_CONFIG , eosConfig ) ;
properties . put ( StreamsConfig . PROCESSING_GUARANTEE_CONFIG , eosConfig ) ;
properties . put ( StreamsConfig . CACHE_MAX_BYTES_BUFFERING_CONFIG , 0 ) ;
properties . put ( StreamsConfig . CACHE_MAX_BYTES_BUFFERING_CONFIG , 0 ) ;
properties . put ( StreamsConfig . COMMIT_INTERVAL_MS_CONFIG , 100 ) ;
properties . put ( StreamsConfig . COMMIT_INTERVAL_MS_CONFIG , 100L ) ;
properties . put ( ConsumerConfig . METADATA_MAX_AGE_CONFIG , "1000" ) ;
properties . put ( ConsumerConfig . METADATA_MAX_AGE_CONFIG , "1000" ) ;
properties . put ( ConsumerConfig . AUTO_OFFSET_RESET_CONFIG , "earliest" ) ;
properties . put ( ConsumerConfig . AUTO_OFFSET_RESET_CONFIG , "earliest" ) ;
@ -874,9 +874,14 @@ public class EosIntegrationTest {
. to ( SINGLE_PARTITION_OUTPUT_TOPIC ) ;
. to ( SINGLE_PARTITION_OUTPUT_TOPIC ) ;
final Properties properties = new Properties ( ) ;
final Properties properties = new Properties ( ) ;
// Set commit interval to a larger value to avoid affection of controlled stream commit,
// but not too large as we need to have a relatively low transaction timeout such
// that it should help trigger the timed out transaction in time.
final long commitIntervalMs = 20_000L ;
properties . put ( StreamsConfig . PROCESSING_GUARANTEE_CONFIG , eosConfig ) ;
properties . put ( StreamsConfig . PROCESSING_GUARANTEE_CONFIG , eosConfig ) ;
properties . put ( StreamsConfig . NUM_STREAM_THREADS_CONFIG , numberOfStreamsThreads ) ;
properties . put ( StreamsConfig . NUM_STREAM_THREADS_CONFIG , numberOfStreamsThreads ) ;
properties . put ( StreamsConfig . COMMIT_INTERVAL_MS_CONFIG , Long . MAX_VALUE ) ;
properties . put ( StreamsConfig . COMMIT_INTERVAL_MS_CONFIG , commitIntervalMs ) ;
properties . put ( StreamsConfig . producerPrefix ( ProducerConfig . TRANSACTION_TIMEOUT_CONFIG ) , ( int ) commitIntervalMs ) ;
properties . put ( StreamsConfig . consumerPrefix ( ConsumerConfig . METADATA_MAX_AGE_CONFIG ) , "1000" ) ;
properties . put ( StreamsConfig . consumerPrefix ( ConsumerConfig . METADATA_MAX_AGE_CONFIG ) , "1000" ) ;
properties . put ( StreamsConfig . consumerPrefix ( ConsumerConfig . AUTO_OFFSET_RESET_CONFIG ) , "earliest" ) ;
properties . put ( StreamsConfig . consumerPrefix ( ConsumerConfig . AUTO_OFFSET_RESET_CONFIG ) , "earliest" ) ;
properties . put ( StreamsConfig . consumerPrefix ( ConsumerConfig . REQUEST_TIMEOUT_MS_CONFIG ) , 5 * 1000 ) ;
properties . put ( StreamsConfig . consumerPrefix ( ConsumerConfig . REQUEST_TIMEOUT_MS_CONFIG ) , 5 * 1000 ) ;