File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
tests/templates/kuttl/smoke Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
8
8
9
9
- The lifetime of auto generated TLS certificates is now configurable with the role and roleGroup
10
10
config property ` requestedSecretLifetime ` . This helps reducing frequent Pod restarts ([ #619 ] ).
11
+ - Run a ` containerdebug ` process in the background of each HDFS container to collect debugging information ([ #629 ] ).
11
12
12
13
### Fixed
13
14
@@ -17,6 +18,7 @@ All notable changes to this project will be documented in this file.
17
18
18
19
[ #616 ] : https://github.com/stackabletech/hdfs-operator/pull/616
19
20
[ #619 ] : https://github.com/stackabletech/hdfs-operator/pull/619
21
+ [ #629 ] : https://github.com/stackabletech/hdfs-operator/pull/629
20
22
21
23
## [ 24.11.0] - 2024-11-18
22
24
Original file line number Diff line number Diff line change @@ -612,6 +612,7 @@ impl ContainerConfig {
612
612
{COMMON_BASH_TRAP_FUNCTIONS}
613
613
{remove_vector_shutdown_file_command}
614
614
prepare_signal_handlers
615
+ CONTAINERDEBUG_LOG_DIRECTORY={STACKABLE_LOG_DIR}/containerdebug containerdebug --output={STACKABLE_LOG_DIR}/containerdebug-state.json --loop &
615
616
if [[ -d {LISTENER_VOLUME_DIR} ]]; then
616
617
export POD_ADDRESS=$(cat {LISTENER_VOLUME_DIR}/default-address/address)
617
618
for i in {LISTENER_VOLUME_DIR}/default-address/ports/*; do
Original file line number Diff line number Diff line change @@ -143,3 +143,12 @@ status:
143
143
expectedPods: {{ test_scenario['values'] ['number-of-datanodes'] }}
144
144
currentHealthy: {{ test_scenario['values'] ['number-of-datanodes'] }}
145
145
disruptionsAllowed: 1
146
+ ---
147
+ # This test checks if the containerdebug-state.json file is present and valid
148
+ apiVersion: kuttl.dev/v1beta1
149
+ kind: TestAssert
150
+ timeout: 600
151
+ commands:
152
+ - script: kubectl exec -n $NAMESPACE --container namenode hdfs-namenode-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status
153
+ - script: kubectl exec -n $NAMESPACE --container datanode hdfs-datanode-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status
154
+ - script: kubectl exec -n $NAMESPACE --container journalnode hdfs-journalnode-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status
You can’t perform that action at this time.
0 commit comments