File tree Expand file tree Collapse file tree
tests/templates/kuttl/logging Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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]
You can’t perform that action at this time.
0 commit comments