Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/templates/kuttl/configuration/10-assert.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
resources:
limits:
# value set in the role configuration
cpu: 500m
cpu: 1200m
# value set in the rolegroup configuration
memory: 3Gi
requests:
Expand Down
17 changes: 11 additions & 6 deletions tests/templates/kuttl/configuration/10-install-kafka.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
# Inherit the default value '250m' set by the operator
# min: '250m'
# Override the default value '1' set by the operator
max: '500m'
max: '1200m'
# memory:
# Inherit the default value '1Gi' set by the operator
# limit: '1Gi'
Expand All @@ -45,8 +45,8 @@ spec:
# cpu:
# Inherit the default value '250m' set by the operator
# min: '250m'
# Inherit the value '1000m' set in the role configuration
# max: '1000m'
# Inherit the value '1200m' set in the role configuration
# max: '1200m'
memory:
# Override the default value '1Gi' set by the operator
limit: '2Gi'
Expand All @@ -56,6 +56,11 @@ spec:
capacity: '1Gi'
replicas: 1
brokers:
# Work around KAFKA-19354: after a slow start a broker can get stuck fetching from a
# follower controller. A longer fetch timeout (default 2000) avoids that. Fixed in Kafka 4.2.0.
configOverrides:
broker.properties:
controller.quorum.fetch.timeout.ms: "10000"
config:
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
Expand All @@ -64,7 +69,7 @@ spec:
# Inherit the default value '250m' set by the operator
# min: '250m'
# Override the default value '1' set by the operator
max: '500m'
max: '1200m'
# memory:
# Inherit the default value '2Gi' set by the operator
# limit: '2Gi'
Expand All @@ -79,8 +84,8 @@ spec:
# cpu:
# Inherit the default value '250m' set by the operator
# min: '250m'
# Inherit the value '1000m' set in the role configuration
# max: '1000m'
# Inherit the value '1200m' set in the role configuration
# max: '1200m'
memory:
# Override the default value '2Gi' set by the operator
limit: '3Gi'
Expand Down
5 changes: 5 additions & 0 deletions tests/templates/kuttl/kraft-kerberos/20-install-kafka.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,10 @@ commands:
gracefulShutdownTimeout: 30s # speed up tests
roleGroups:
default:
# Work around KAFKA-19354: after a slow start a broker can get stuck fetching from a
# follower controller. A longer fetch timeout (default 2000) avoids that. Fixed in Kafka 4.2.0.
configOverrides:
broker.properties:
controller.quorum.fetch.timeout.ms: "10000"
replicas: 3
EOF
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,10 @@ commands:
brokers:
roleGroups:
default:
# See 20-install-kafka.yaml.j2. Must be repeated here, because
# kubectl apply would otherwise remove the override set in the earlier step.
configOverrides:
broker.properties:
controller.quorum.fetch.timeout.ms: "10000"
replicas: 3
EOF
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,10 @@ commands:
gracefulShutdownTimeout: 30s # speed up tests
roleGroups:
default:
# See 20-install-kafka.yaml.j2. Must be repeated here, because
# kubectl apply would otherwise remove the override set in the earlier step.
configOverrides:
broker.properties:
controller.quorum.fetch.timeout.ms: "10000"
replicas: 3
EOF
5 changes: 5 additions & 0 deletions tests/templates/kuttl/management-access/10_kafka.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ spec:
default:
replicas: 1
brokers:
# Work around KAFKA-19354: after a slow start a broker can get stuck fetching from a
# follower controller. A longer fetch timeout (default 2000) avoids that. Fixed in Kafka 4.2.0.
configOverrides:
broker.properties:
controller.quorum.fetch.timeout.ms: "10000"
config:
gracefulShutdownTimeout: 30s # speed up tests
roleGroups:
Expand Down
5 changes: 5 additions & 0 deletions tests/templates/kuttl/opa-kraft/30-install-kafka.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ commands:
default:
replicas: 3
brokers:
# Work around KAFKA-19354: after a slow start a broker can get stuck fetching from a
# follower controller. A longer fetch timeout (default 2000) avoids that. Fixed in Kafka 4.2.0.
configOverrides:
broker.properties:
controller.quorum.fetch.timeout.ms: "10000"
config:
logging:
enableVectorAgent: true
Expand Down
5 changes: 5 additions & 0 deletions tests/templates/kuttl/smoke-kraft/30-install-kafka.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ spec:
broker.properties:
compression.type: uncompressed # overridden by role group below
controller.quorum.election.backoff.max.ms: "2000"
# Work around KAFKA-19354: after a slow start a broker can get stuck fetching from a
# follower controller. A longer fetch timeout (default 2000) avoids that. Fixed in Kafka 4.2.0.
# The "default" role group below overrides this with 3000 on purpose (asserted in
# 31-assert.yaml), so only the other role groups get 10000.
controller.quorum.fetch.timeout.ms: "10000"
envOverrides:
COMMON_VAR: role-value # overridden by role group below
ROLE_VAR: role-value # only defined here at role level
Expand Down
5 changes: 5 additions & 0 deletions tests/templates/kuttl/topic/10-install-kafka.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ spec:
default:
replicas: 1
brokers:
# Work around KAFKA-19354: after a slow start a broker can get stuck fetching from a
# follower controller. A longer fetch timeout (default 2000) avoids that. Fixed in Kafka 4.2.0.
configOverrides:
broker.properties:
controller.quorum.fetch.timeout.ms: "10000"
config:
gracefulShutdownTimeout: 30s # speed up tests
roleGroups:
Expand Down
5 changes: 5 additions & 0 deletions tests/templates/kuttl/upgrade/02-install-kafka.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ spec:
vectorAggregatorConfigMapName: vector-aggregator-discovery
{% endif %}
brokers:
# Work around KAFKA-19354: after a slow start a broker can get stuck fetching from a
# follower controller. A longer fetch timeout (default 2000) avoids that. Fixed in Kafka 4.2.0.
configOverrides:
broker.properties:
controller.quorum.fetch.timeout.ms: "10000"
config:
gracefulShutdownTimeout: 30s # speed up tests
logging:
Expand Down