You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2020/08/20 01:57:16 UTC
[lucene-solr] 06/06: @572 Revert cloud.sh changes that were not
meant to be committed.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch reference_impl
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
commit 307e549877ceb734b44f2d102650643e8a8be27d
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Wed Aug 19 19:51:11 2020 -0500
@572 Revert cloud.sh changes that were not meant to be committed.
---
solr/cloud-dev/cloud.sh | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/solr/cloud-dev/cloud.sh b/solr/cloud-dev/cloud.sh
index 17a5fa4..12daa1f 100644
--- a/solr/cloud-dev/cloud.sh
+++ b/solr/cloud-dev/cloud.sh
@@ -254,7 +254,7 @@ cleanIfReq() {
recompileIfReq() {
if [[ "$RECOMPILE" = true ]]; then
pushd "$VCS_WORK"/solr
- ant clean server create-package
+ ant clean create-package
if [[ "$?" -ne 0 ]]; then
echo "BUILD FAIL - cloud.sh stopping, see above output for details"; popd; exit 7;
fi
@@ -288,7 +288,10 @@ copyTarball() {
# Assume that zookeeper holds it if it is #
#############################################
testZookeeper() {
- echo "no"
+ PORT_FOUND=$( netstat -an | grep '\b'${ZK_PORT}'\s' | grep LISTEN | awk '{print $4}' | sed -E 's/.*\b('${ZK_PORT}')\s*/\1/');
+ if [[ -z "$PORT_FOUND" ]]; then
+ echo "No process listening on port ${ZK_PORT}. Please start zookeeper and try again"; exit 8;
+ fi
}
##########################