Skip to content

Commit e719b20

Browse files
committed
precommit
1 parent 1c796ff commit e719b20

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

rust/operator-binary/src/container.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ impl ContainerConfig {
693693
do
694694
echo -n "Checking pod $namenode_id... "
695695
696-
# We only redirect 2 (stderr) to 4 (console).
696+
# We only redirect 2 (stderr) to 4 (console).
697697
# We leave 1 (stdout) alone so the $(...) can catch it.
698698
SERVICE_STATE=$({hadoop_home}/bin/hdfs haadmin -getServiceState "$namenode_id" 2>&4 | tail -n1 || true)
699699
@@ -703,7 +703,7 @@ impl ContainerConfig {
703703
echo "active"
704704
break
705705
else
706-
echo "unknown / unreachable"
706+
echo "unknown / unreachable"
707707
fi
708708
done
709709
@@ -792,7 +792,7 @@ impl ContainerConfig {
792792
do
793793
echo -n "Checking pod $namenode_id... "
794794
795-
# We only redirect 2 (stderr) to 4 (console).
795+
# We only redirect 2 (stderr) to 4 (console).
796796
# We leave 1 (stdout) alone so the $(...) can catch it.
797797
SERVICE_STATE=$({hadoop_home}/bin/hdfs haadmin -getServiceState "$namenode_id" 2>&4 | tail -n1 || true)
798798
@@ -1604,7 +1604,7 @@ fn bash_capture_shell_helper(container_name: &str) -> String {
16041604
"$@" 1>&3 2>&4
16051605
local exit_code=$?
16061606
set -e
1607-
1607+
16081608
# If the command failed, we manually trigger the exit since we set +e
16091609
if [ $exit_code -ne 0 ]; then
16101610
exit $exit_code

0 commit comments

Comments
 (0)