Skip to content

Commit

Permalink
test: add shutdown timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
razvan committed Oct 21, 2024
1 parent 1042dd1 commit 81f44d9
Show file tree
Hide file tree
Showing 18 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spec:
{% endif %}
servers:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,23 @@ spec:
reconciliationPaused: false
nameNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 2
dataNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 1
journalNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
Expand Down
3 changes: 3 additions & 0 deletions tests/templates/kuttl/cluster-operation/30-stop-hdfs.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,23 @@ spec:
reconciliationPaused: false
nameNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 2
dataNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 1
journalNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
Expand Down
3 changes: 3 additions & 0 deletions tests/templates/kuttl/cluster-operation/40-pause-hdfs.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,23 @@ spec:
reconciliationPaused: true
nameNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 2
dataNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 1
journalNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,23 @@ spec:
reconciliationPaused: false
nameNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 2
dataNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 1
journalNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spec:
{% endif %}
servers:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
Expand Down
3 changes: 3 additions & 0 deletions tests/templates/kuttl/external-access/30-install-hdfs.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spec:
{% endif %}
nameNodes:
config:
gracefulShutdownTimeout: 1m
listenerClass: external-stable
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
Expand All @@ -34,6 +35,7 @@ spec:
replicas: 2
dataNodes:
config:
gracefulShutdownTimeout: 1m
listenerClass: external-unstable
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
Expand All @@ -42,6 +44,7 @@ spec:
replicas: 1
journalNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
Expand Down
1 change: 1 addition & 0 deletions tests/templates/kuttl/kerberos/10-install-zk.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spec:
{% endif %}
servers:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
Expand Down
3 changes: 3 additions & 0 deletions tests/templates/kuttl/kerberos/20-install-hdfs.txt.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ spec:
{% endif %}
nameNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
containers:
Expand All @@ -44,13 +45,15 @@ spec:
replicas: 2
dataNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 2
journalNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
Expand Down
1 change: 1 addition & 0 deletions tests/templates/kuttl/logging/02-install-zookeeper.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spec:
{% endif %}
servers:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ spec:
zookeeperConfigMapName: test-hdfs-automatic-log-znode
nameNodes:
config:
gracefulShutdownTimeout: 1m
resources:
cpu:
max: 250m
Expand Down Expand Up @@ -81,6 +82,7 @@ spec:
name: prepared-logs
dataNodes:
config:
gracefulShutdownTimeout: 1m
resources:
cpu:
max: 250m
Expand Down Expand Up @@ -121,6 +123,7 @@ spec:
level: DEBUG
journalNodes:
config:
gracefulShutdownTimeout: 1m
resources:
cpu:
max: 250m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ spec:
zookeeperConfigMapName: test-hdfs-custom-log-znode
nameNodes:
config:
gracefulShutdownTimeout: 1m
resources:
cpu:
max: 250m
Expand All @@ -99,6 +100,7 @@ spec:
configMap: hdfs-format-zookeeper-log-config
dataNodes:
config:
gracefulShutdownTimeout: 1m
resources:
cpu:
max: 250m
Expand All @@ -118,6 +120,7 @@ spec:
configMap: hdfs-wait-for-namenodes-log-config
journalNodes:
config:
gracefulShutdownTimeout: 1m
resources:
cpu:
max: 250m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spec:
{% endif %}
servers:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ spec:
{% endif %}
nameNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 2
dataNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
Expand All @@ -36,6 +38,7 @@ spec:
replicas: 1
journalNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spec:
{% endif %}
servers:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
Expand Down
3 changes: 3 additions & 0 deletions tests/templates/kuttl/profiling/03-install-hdfs.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,23 @@ spec:
{% endif %}
nameNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 2
dataNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
default:
replicas: 1
journalNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spec:
{% endif %}
servers:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
roleGroups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ commands:
{% endif %}
nameNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
containers:
Expand All @@ -52,6 +53,7 @@ commands:
replicas: 2
dataNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
configOverrides: *configOverrides
Expand All @@ -60,6 +62,7 @@ commands:
replicas: 3
journalNodes:
config:
gracefulShutdownTimeout: 1m
logging:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
configOverrides: *configOverrides
Expand Down

0 comments on commit 81f44d9

Please sign in to comment.