Skip to content

Commit 21d288e

Browse files
authored
ISSUE-222 - zoo.cfg updated parameters are not picked up during rolling restarts (#3)
Force refresh of /data/conf/zoo.cfg content
1 parent c10c018 commit 21d288e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docker/bin/zookeeperStart.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,17 @@ if [[ "$REGISTER_NODE" == true ]]; then
135135
set +e
136136
fi
137137

138+
echo Copying /conf contents to writable directory, to support Zookeeper dynamic reconfiguration
138139
ZOOCFGDIR=/data/conf
139140
export ZOOCFGDIR
140141
if [[ ! -d "$ZOOCFGDIR" ]]; then
141-
echo Copying /conf contents to writable directory, to support Zookeeper dynamic reconfiguration
142142
mkdir $ZOOCFGDIR
143-
cp -f /conf/zoo.cfg $ZOOCFGDIR
144-
cp -f /conf/log4j.properties $ZOOCFGDIR
145-
cp -f /conf/log4j-quiet.properties $ZOOCFGDIR
146-
cp -f /conf/env.sh $ZOOCFGDIR
147143
fi
144+
# refresh config files from source /conf dir
145+
cp -f /conf/log4j.properties $ZOOCFGDIR
146+
cp -f /conf/log4j-quiet.properties $ZOOCFGDIR
147+
cp -f /conf/env.sh $ZOOCFGDIR
148+
cp -f /conf/zoo.cfg $ZOOCFGDIR
148149

149150
if [ -f $DYNCONFIG ]; then
150151
# Node registered, start server

0 commit comments

Comments
 (0)