Skip to content

Commit

Permalink
Observers fail to register when zk ensemble service domain is not yet…
Browse files Browse the repository at this point in the history
… available (#135)

When ensemble DOMAIN is not yet available (happens in k8s when svc domain dns resolve is slow to resolve), observer peers (id>=2) fail to register and enter a crash loop.
Previously the DYNCONFIG was populated with peer nodes but `REGISTER_NODE` is false (domain not yet available) hence the `zu add` never called. Subsequently when peer is restarted the registration is never called
  • Loading branch information
amuraru authored Apr 19, 2021
1 parent b1519ae commit 5c86f53
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions docker/bin/zookeeperStart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,6 @@ if [[ "$WRITE_CONFIGURATION" == true ]]; then
echo $ZKCONFIG
echo $MYID > $MYID_FILE
echo "server.${MYID}=${ZKCONFIG}" > $DYNCONFIG
else
set -e
ZKURL=$(zkConnectionString)
CONFIG=`java -Dlog4j.configuration=file:"$LOG4J_CONF" -jar /root/zu.jar get-all $ZKURL`
echo Writing configuration gleaned from zookeeper ensemble
echo "$CONFIG" | grep -v "^version="> $DYNCONFIG
set +e
fi
fi

Expand Down

0 comments on commit 5c86f53

Please sign in to comment.