Skip to content

Commit c078b37

Browse files
committed
Removing check that keeps only elected master seeding due to potential timing issues
1 parent 5044ce7 commit c078b37

File tree

1 file changed

+14
-22
lines changed

1 file changed

+14
-22
lines changed

elasticsearch/init.sh

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,18 @@ source "logging"
1919

2020
wait_for_port_open
2121

22-
# find out who the master of the cluster is
23-
master_node=$(get_master_node)
24-
25-
# if we're the master -- do the init
26-
if [[ "$master_node" == "$DC_NAME" ]]; then
27-
28-
failed=0
29-
30-
touch ${HOME}/init_running
31-
pushd "${ES_HOME}/init"
32-
files=$(ls --hide common | sort)
33-
for init_file in ${files}; do
34-
if [ -f "${init_file}" ] ; then
35-
./"${init_file}" || { failed=1 ; echo "failed init: ${init_file}" >> ${HOME}/init_failures ; }
36-
fi
37-
done
38-
popd
39-
40-
if [ $failed -eq 1 ]; then
41-
show_failures
42-
fi
43-
22+
failed=0
23+
24+
touch ${HOME}/init_running
25+
pushd "${ES_HOME}/init"
26+
files=$(ls --hide common | sort)
27+
for init_file in ${files}; do
28+
if [ -f "${init_file}" ] ; then
29+
./"${init_file}" || { failed=1 ; echo "failed init: ${init_file}" >> ${HOME}/init_failures ; }
30+
fi
31+
done
32+
popd
33+
34+
if [ $failed -eq 1 ]; then
35+
show_failures
4436
fi

0 commit comments

Comments
 (0)