Skip to content

Commit

Permalink
Avoids potential timing issues with broker start
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Apr 7, 2018
1 parent 0900b91 commit baa2011
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions kafka/10broker-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ data:
fi
}
printf '%s\n' "${SEDS[@]}" > /tmp/kafka-init-config.sed
sed -f /tmp/kafka-init-config.sed /etc/kafka-configmap/server.properties > /etc/kafka/server.properties
echo "Completed initial config. Staying alive to support Kafka 1.1+ dynamic config updates"
tail -f /dev/null
sed -f /tmp/kafka-init-config.sed /etc/kafka-configmap/server.properties > /etc/kafka/server.properties.tmp
[ $? -eq 0 ] && mv /etc/kafka/server.properties.tmp /etc/kafka/server.properties
[ -f /etc/kafka/server.properties ] && echo "Ready for Kafka start" && tail -f /dev/null
server.properties: |-
############################# Log Basics #############################
Expand Down

0 comments on commit baa2011

Please sign in to comment.