Skip to content

Commit 61c79fb

Browse files
committed
remove set +x and add format-zookeeper test
1 parent 0b7ef22 commit 61c79fb

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

rust/operator-binary/src/container.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,10 +746,8 @@ impl ContainerConfig {
746746
r###"
747747
echo "Attempt to format ZooKeeper..."
748748
if [[ "0" -eq "$(echo $POD_NAME | sed -e 's/.*-//')" ]] ; then
749-
set +e
750749
exclude_from_capture {hadoop_home}/bin/hdfs zkfc -formatZK -nonInteractive
751750
EXITCODE=$?
752-
set -e
753751
if [[ $EXITCODE -eq 0 ]]; then
754752
echo "Successfully formatted"
755753
elif [[ $EXITCODE -eq 2 ]]; then

tests/templates/kuttl/logging/hdfs-vector-aggregator-values.yaml.j2

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,27 @@ customConfig:
102102
.pod == "test-hdfs-automatic-log-namenode-default-1" &&
103103
.container == "format-namenodes" &&
104104
.file == "container.stderr.log"
105-
filteredAutomaticLogConfigNameNode0FormatZookeeper:
105+
filteredAutomaticLogConfigNameNode0FormatZookeeperLog4j:
106106
type: filter
107107
inputs: [validEvents]
108108
condition: >-
109109
.pod == "test-hdfs-automatic-log-namenode-default-0" &&
110-
.container == "format-zookeeper"
110+
.container == "format-zookeeper" &&
111+
.file == "format-zookeeper.log4j.xml"
112+
filteredAutomaticLogConfigNameNode0FormatZookeeperStdout:
113+
type: filter
114+
inputs: [validEvents]
115+
condition: >-
116+
.pod == "test-hdfs-automatic-log-namenode-default-0" &&
117+
.container == "format-zookeeper" &&
118+
.file == "container.stdout.log"
119+
filteredAutomaticLogConfigNameNode0FormatZookeeperStderr:
120+
type: filter
121+
inputs: [validEvents]
122+
condition: >-
123+
.pod == "test-hdfs-automatic-log-namenode-default-0" &&
124+
.container == "format-zookeeper" &&
125+
.file == "container.stderr.log"
111126
filteredAutomaticLogConfigDataNode0:
112127
type: filter
113128
inputs: [validEvents]

0 commit comments

Comments
 (0)