@ -42,6 +42,7 @@ import org.apache.kafka.streams.errors.LogAndFailExceptionHandler;
@@ -42,6 +42,7 @@ import org.apache.kafka.streams.errors.LogAndFailExceptionHandler;
import org.apache.kafka.streams.errors.ProductionExceptionHandler ;
import org.apache.kafka.streams.errors.StreamsException ;
import org.apache.kafka.streams.internals.StreamsConfigUtils ;
import org.apache.kafka.streams.internals.UpgradeFromValues ;
import org.apache.kafka.streams.processor.FailOnInvalidTimestamp ;
import org.apache.kafka.streams.processor.TimestampExtractor ;
import org.apache.kafka.streams.processor.internals.DefaultKafkaClientSupplier ;
@ -61,6 +62,7 @@ import java.util.Objects;
@@ -61,6 +62,7 @@ import java.util.Objects;
import java.util.Properties ;
import java.util.Set ;
import java.util.stream.Collectors ;
import java.util.stream.Stream ;
import static org.apache.kafka.common.IsolationLevel.READ_COMMITTED ;
import static org.apache.kafka.common.config.ConfigDef.ListSize.atMostOfSize ;
@ -289,121 +291,121 @@ public class StreamsConfig extends AbstractConfig {
@@ -289,121 +291,121 @@ public class StreamsConfig extends AbstractConfig {
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 0 . 10 . 0 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_0100 = "0.10.0" ;
public static final String UPGRADE_FROM_0100 = UpgradeFromValues . UPGRADE_FROM_0100 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 0 . 10 . 1 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_0101 = "0.10.1" ;
public static final String UPGRADE_FROM_0101 = UpgradeFromValues . UPGRADE_FROM_0101 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 0 . 10 . 2 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_0102 = "0.10.2" ;
public static final String UPGRADE_FROM_0102 = UpgradeFromValues . UPGRADE_FROM_0102 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 0 . 11 . 0 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_0110 = "0.11.0" ;
public static final String UPGRADE_FROM_0110 = UpgradeFromValues . UPGRADE_FROM_0110 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 1 . 0 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_10 = "1.0" ;
public static final String UPGRADE_FROM_10 = UpgradeFromValues . UPGRADE_FROM_10 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 1 . 1 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_11 = "1.1" ;
public static final String UPGRADE_FROM_11 = UpgradeFromValues . UPGRADE_FROM_11 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 2 . 0 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_20 = "2.0" ;
public static final String UPGRADE_FROM_20 = UpgradeFromValues . UPGRADE_FROM_20 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 2 . 1 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_21 = "2.1" ;
public static final String UPGRADE_FROM_21 = UpgradeFromValues . UPGRADE_FROM_21 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 2 . 2 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_22 = "2.2" ;
public static final String UPGRADE_FROM_22 = UpgradeFromValues . UPGRADE_FROM_22 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 2 . 3 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_23 = "2.3" ;
public static final String UPGRADE_FROM_23 = UpgradeFromValues . UPGRADE_FROM_23 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 2 . 4 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_24 = "2.4" ;
public static final String UPGRADE_FROM_24 = UpgradeFromValues . UPGRADE_FROM_24 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 2 . 5 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_25 = "2.5" ;
public static final String UPGRADE_FROM_25 = UpgradeFromValues . UPGRADE_FROM_25 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 2 . 6 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_26 = "2.6" ;
public static final String UPGRADE_FROM_26 = UpgradeFromValues . UPGRADE_FROM_26 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 2 . 7 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_27 = "2.7" ;
public static final String UPGRADE_FROM_27 = UpgradeFromValues . UPGRADE_FROM_27 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 2 . 8 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_28 = "2.8" ;
public static final String UPGRADE_FROM_28 = UpgradeFromValues . UPGRADE_FROM_28 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 3 . 0 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_30 = "3.0" ;
public static final String UPGRADE_FROM_30 = UpgradeFromValues . UPGRADE_FROM_30 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 3 . 1 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_31 = "3.1" ;
public static final String UPGRADE_FROM_31 = UpgradeFromValues . UPGRADE_FROM_31 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 3 . 2 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_32 = "3.2" ;
public static final String UPGRADE_FROM_32 = UpgradeFromValues . UPGRADE_FROM_32 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 3 . 3 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_33 = "3.3" ;
public static final String UPGRADE_FROM_33 = UpgradeFromValues . UPGRADE_FROM_33 . toString ( ) ;
/ * *
* Config value for parameter { @link # UPGRADE_FROM_CONFIG "upgrade.from" } for upgrading an application from version { @code 3 . 4 . x } .
* /
@SuppressWarnings ( "WeakerAccess" )
public static final String UPGRADE_FROM_34 = "3.4" ;
public static final String UPGRADE_FROM_34 = UpgradeFromValues . UPGRADE_FROM_34 . toString ( ) ;
/ * *
* Config value for parameter { @link # PROCESSING_GUARANTEE_CONFIG "processing.guarantee" } for at - least - once processing guarantees .
@ -993,9 +995,9 @@ public class StreamsConfig extends AbstractConfig {
@@ -993,9 +995,9 @@ public class StreamsConfig extends AbstractConfig {
Importance . LOW ,
REPARTITION_PURGE_INTERVAL_MS_DOC )
. define ( CONNECTIONS_MAX_IDLE_MS_CONFIG ,
ConfigDef . Type . LONG ,
Type . LONG ,
9 * 60 * 1000L ,
ConfigDef . Importance . LOW ,
Importance . LOW ,
CommonClientConfigs . CONNECTIONS_MAX_IDLE_MS_DOC )
. define ( DEFAULT_DSL_STORE_CONFIG ,
Type . STRING ,
@ -1009,10 +1011,10 @@ public class StreamsConfig extends AbstractConfig {
@@ -1009,10 +1011,10 @@ public class StreamsConfig extends AbstractConfig {
Importance . LOW ,
DEFAULT_CLIENT_SUPPLIER_DOC )
. define ( METADATA_MAX_AGE_CONFIG ,
ConfigDef . Type . LONG ,
Type . LONG ,
5 * 60 * 1000L ,
atLeast ( 0 ) ,
ConfigDef . Importance . LOW ,
Importance . LOW ,
CommonClientConfigs . METADATA_MAX_AGE_DOC )
. define ( METRICS_NUM_SAMPLES_CONFIG ,
Type . INT ,
@ -1069,25 +1071,25 @@ public class StreamsConfig extends AbstractConfig {
@@ -1069,25 +1071,25 @@ public class StreamsConfig extends AbstractConfig {
Type . LONG ,
1000L ,
atLeast ( 0L ) ,
ConfigDef . Importance . LOW ,
Importance . LOW ,
CommonClientConfigs . RECONNECT_BACKOFF_MAX_MS_DOC )
. define ( RETRIES_CONFIG ,
Type . INT ,
0 ,
between ( 0 , Integer . MAX_VALUE ) ,
ConfigDef . Importance . LOW ,
Importance . LOW ,
CommonClientConfigs . RETRIES_DOC )
. define ( RETRY_BACKOFF_MS_CONFIG ,
Type . LONG ,
100L ,
atLeast ( 0L ) ,
ConfigDef . Importance . LOW ,
Importance . LOW ,
CommonClientConfigs . RETRY_BACKOFF_MS_DOC )
. define ( REQUEST_TIMEOUT_MS_CONFIG ,
Type . INT ,
40 * 1000 ,
atLeast ( 0 ) ,
ConfigDef . Importance . LOW ,
Importance . LOW ,
CommonClientConfigs . REQUEST_TIMEOUT_MS_DOC )
. define ( ROCKSDB_CONFIG_SETTER_CLASS_CONFIG ,
Type . CLASS ,
@ -1106,29 +1108,13 @@ public class StreamsConfig extends AbstractConfig {
@@ -1106,29 +1108,13 @@ public class StreamsConfig extends AbstractConfig {
Importance . LOW ,
STATE_CLEANUP_DELAY_MS_DOC )
. define ( UPGRADE_FROM_CONFIG ,
ConfigDef . Type . STRING ,
Type . STRING ,
null ,
in ( null ,
UPGRADE_FROM_0100 ,
UPGRADE_FROM_0101 ,
UPGRADE_FROM_0102 ,
UPGRADE_FROM_0110 ,
UPGRADE_FROM_10 ,
UPGRADE_FROM_11 ,
UPGRADE_FROM_20 ,
UPGRADE_FROM_21 ,
UPGRADE_FROM_22 ,
UPGRADE_FROM_23 ,
UPGRADE_FROM_24 ,
UPGRADE_FROM_25 ,
UPGRADE_FROM_26 ,
UPGRADE_FROM_27 ,
UPGRADE_FROM_28 ,
UPGRADE_FROM_30 ,
UPGRADE_FROM_31 ,
UPGRADE_FROM_32 ,
UPGRADE_FROM_33 ,
UPGRADE_FROM_34 ) ,
in ( Stream . concat (
Stream . of ( ( String ) null ) ,
Arrays . stream ( UpgradeFromValues . values ( ) ) . map ( UpgradeFromValues : : toString )
) . toArray ( String [ ] : : new )
) ,
Importance . LOW ,
UPGRADE_FROM_DOC )
. define ( WINDOWED_INNER_CLASS_SERDE ,